xyzpy.plot.color

Helper functions for generating color spectrums.

Functions

cimluv(hue[, hue_shift, sat1, sat2, val1, ...])

Creates a color map for single hue, using HSLuv color space.

cimple(hue[, sat1, sat2, val1, val2, ...])

Creates a color map for a single hue.

cimple_bright(hue[, sat1, sat2, val1, val2, ...])

Creates a color map for a single hue, with bright defaults.

cmoke(hue[, hue_shift, sat1, sat2, val1, ...])

Creates a color map for single hue, using OKLCH color space.

convert_colors(cols, outformat[, informat])

Convert lists of colors between formats

convert_colors_string_to_tuple(cols)

get_default_sequential_cm([engine])

linear_rgb_to_srgb(r, g, b)

linear_rgb_to_xyz(r, g, b)

oklab_to_oklch(L, a, b)

oklab_to_xyz(l, a, b)

oklch_to_oklab(l, c, h)

oklch_to_rgb(l, c, h)

rgb_to_oklch(sr, sg, sb)

srgb_to_linear_rgb(sr, sg, sb)

xyz_colormaps([name, reverse])

Custom-defined colormaps

xyz_to_linear_rgb(x, y, z)

xyz_to_oklab(x, y, z)