palettes

palettes — Color math, gradients & swatch palettes.

palettes Color management library with RGB565 / RGB888 conversion, HSL / HSV color spaces, palette swatches, and smooth gradient generators.

Live Pure-Python Device

Visual Palette Showcase

Live previews of generated palette spectrums and Material Design shade series.
Material Spectrum get_palette('material_design')
HSV Color Wheel get_palette('wheel')
RGB Cube Matrix get_palette('cube')
Windows-16 Standard get_palette('default')

Installation & API Usage

import mip
mip.install("palettes", index="https://PyDevices.github.io/mip")

# Example Usage:
from palettes import get_palette
palette = get_palette("material_design")
primary_color = palette.RED
shade_dark = palette.RED_S900

get_palette Options & Kwargs

Supports 16-bit RGB565, 24-bit RGB888, and byte-swapped hardware formats
Palette Name Description & Contents Useful Kwargs
"default" Windows-16 named colors (RED, BLUE, GREEN, CYAN, etc.) color_depth, swapped
"wheel" HSV color wheel as an indexed sequence length, saturation, color_depth, swapped
"cube" RGB color cube matrix size, color_depth, swapped
"material_design" Material swatches & 50–900 shade scales (RED_S100 through RED_S900) color_depth, swapped