Palettes#

Curated color sets and color-vision helpers for layer tinting.

get_palette

Get a curated palette by name.

list_palettes

Return the names of curated (static) palettes.

suggest_colors

Generate n perceptually evenly-spaced colors: equally spaced hue angles on a constant-lightness, constant-chroma ring in CIE LCh space.

Related package utilities (also under mcf.palettes):

list_hue_patterns

Names of dynamic hue-geometry patterns.

list_palette_menu

Grouped palette menu entries for GUIs.

colors_for_hue_pattern

Colors for a Paletton-style hue relationship, adapted to n layers.

rotate_colors_from_base

Rotate layer colors around the hue wheel, preserving each color's L/C and its angular offset from the first layer.

check_palette_colorblind

Check whether a palette's colors remain distinguishable under a color vision deficiency, by simulating the CVD and measuring pairwise CIELAB distances.