Polychromos
πολύχρωμος
Greek; adjective
From πολύ- ("many", "much") and -χρωμος (from χρῶμα, "color").
Multicolored.
Color and palette utility library.
Polychromos provides utilities for working with colors and palettes from an artistic perspective, using color theory and the human-friendly HSL (hue-saturation-lightness) color model.
Modules
The library provides three modules:
color— theHSLColorclass, encapsulating a single color in HSLA format.web— a submodule containing the standard web colors.
palette—HSLColorSequence(an alias forlist[HSLColor]) and thePaletteclass with utilities to generate and manipulate sets of colors.easing— easing functions and their IDs, used when building color scales.
Imports
The main classes can be imported directly from the package root:
Or from their respective modules: