updateColors method

void updateColors(
  1. Float32List colors
)

Replaces every vertex color, keeping the vertex count unchanged.

Implementation

void updateColors(Float32List colors) {
  _ensureUpdatable('updateColors');
  _checkAttributeLength('colors', colors.length, 4);
  _cpuColors = Float32List.fromList(colors);
  _uploadVertexBytes();
}