pyrc.core.visualization.color.vpython#

cycle_palette_vpython(cmap: str = 'managua10') Generator[vector, None, None]#

Yield VPython vector colours from a colormap, cycling indefinitely.

Parameters:

cmap (str) – Colormap name passed to cycle_palette.

Yields:

vector – VPython color vector with components (r, g, b) in [0, 1].

Examples

>>> generator = cycle_palette_vpython()
>>> first_three_colors = [next(generator) for _ in range(3)])