fastplotlib.graphics.features.VertexColors#

class VertexColors(colors, n_colors, isolated_buffer=True, property_name='colors')[source]#

Manages the vertex color buffer for LineGraphic or ScatterGraphic

Parameters:
  • colors (str | pygfx.Color | np.ndarray | Sequence[float] | Sequence[str]) – specify colors as a single human-readable string, RGBA array, or an iterable of strings or RGBA arrays

  • n_colors (int) – number of colors, if passing in a single str or single RGBA array