Skip to content

Function: writeFillColors() ​

ts
function writeFillColors(color, vertexStarts, out?): Float32Array;

Experimental

Expand per-polygon colors to per-vertex RGBA (4 floats per vertex) using the triangulation's vertexStarts. This is the whole cost of a color-only update: no re-triangulation.

Parameters ​

ParameterType
colorColorInput
vertexStartsUint32Array
out?Float32Array<ArrayBufferLike>

Returns ​

Float32Array

Released under the MIT License.