blissoda.flint.colors.ColorCycler#

class blissoda.flint.colors.ColorCycler(palette_name=None, max_colors=None)[source]#

Bases: object

Cycles through a predefined hex color palette.

Parameters:
  • palette_name (Optional[str])

  • max_colors (Optional[int])

property max_colors: int#
next()[source]#

Return the next color in the cycle (hex string).

Return type:

str

reset()[source]#

Reset the cycle to the beginning.