palettes
August 14, 2026 · View on GitHub
Color palette toolkit for PyDevices — now a separate package.
Install from PyDevices/palettes:
import mip
mip.install("palettes", index="https://PyDevices.github.io/mip")
Documentation: palettes.readthedocs.io
PyScript demos install palettes at runtime via # deps: palettes (?deps= → MIP on MicroPython / micropip on Pyodide).
Usage
from palettes import get_palette
palette = get_palette(name="wheel", length=256, saturation=1.0)
color = palette[42]
Palette types: wheel, cube, material_design, and the default Windows-16 named set.
See palettes docs for full API reference.
Examples
Palette demos remain in lib/examples/palettes_demo.py, graphics_simpletest.py, feathers.py, and others in this repo.