treescope.formatting_util

treescope.formatting_util#

Utilities for formatting and rendering.

Functions

color_from_string(key_string[, lightness, ...])

Derives a color whose hue is keyed by a string.

oklch_color(lightness, chroma, hue[, alpha])

Constructs an OKLCH CSS color.

parse_simple_color_and_pattern_spec(...[, ...])

Parses a background color and pattern from a user-provided color request.