ColorCycler¶
tiatoolbox
.visualization
.bokeh_app
.main
.ColorCycler
- class ColorCycler(colors=None)[source]¶
Class to cycle through a list of colors.
Initialise the color cycler.
Methods
Generate a new random color.
Get the next color in the list.
Get a random color from the list.
- get_next()[source]¶
Get the next color in the list.
- Parameters:
self (ColorCycler)
- Return type:
- get_random()[source]¶
Get a random color from the list.
- Parameters:
self (ColorCycler)
- Return type: