fastplotlib.graphics.features.InfLineColors#
- class InfLineColors(colors, n_colors, property_name='colors')[source]#
Manages per-line colors for
InfLineGraphic.One color is stored per infinite line; internally each color is written to both endpoints of the line’s segment so that the segment renders as a single solid color.
Manages the vertex color buffer for
PositionsGraphic- Parameters:
colors (ColorLike | MultiColorLike) – 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