Skip to content

Function: writeColors() ​

ts
function writeColors(c, layout, out?): Float32Array;

Experimental

Per-item RGBA colors (straight alpha, per-vertex alpha multiplied in). In the Plotly shader's intensity mode the RGB is unused (white) and only alpha is carried.

Parameters ​

ParameterType
cMeshColorInputs
layoutMeshLayout
outFloat32Array

Returns ​

Float32Array

Released under the MIT License.