initNonUniform Method

Set the per-vertex colors.

initNonUniform(colors: Uint32Array, indices: number[], hasAlpha: boolean): void

Parameter Type Description
colors Uint32Array See NonUniformColor.colors.
indices number[] See indices.
hasAlpha boolean true if all colors have a transparency greater than zero, or false if they all have a transparency of zero.

Returns - void

Defined in

Last Updated: 21 November, 2024