wheel
palettes.wheel ¶
pypalette.wheel¶
This module contains the cool wheel color palette as a class object.
Usage
from palettes import get_palette palette = get_palette(name="wheel", color_depth=16, swapped=False, length=256)
OR¶
palette = get_palette(name="wheel")
OR¶
from palettes.wheel import WheelPalette palette = WheelPalette(color_depth=16, swapped=False, length=256)
print(f"Palette: {palette.name}, Length: {len(palette)}") for i, color in enumerate(palette): for i, color in enumerate(palette): print(f"{i}. {color:#06X} {palette.color_name(i)}")
to access the named colors directly:¶
x = palette.RED x = palette.BLACK