color

Simple tools for working with colors.

RGB_to_nodebox_color((R, G, B), ctx, alpha=1.0)[source]

Convert RGB color to a NodeBox Color object.

clear_color(glyph)[source]

Clear the color of a glyph cell.

clear_colors(font)[source]

Clear the color from all glyph cells in the font.

convert_to_1(R, G, B, A=None)[source]
convert_to_255(r, g, b, a=None)[source]
cubic(t, a, b)[source]
hex_to_rgb(value)[source]

Convert hex color to RGB (range 1.0).

random_color(alpha=1.0)[source]

Return a random color.

rgb_to_hex(rgb)[source]

Convert RGB color (range 1.0) to hex.

ryb_to_rgb(r, y, b)[source]

Convert RYB color to RGB (range 1.0).

solarized_color(name)[source]

Return an RGB color for a solarized color name.

x11_color(name)[source]

Return an RGB color for an x11 color name.

Previous topic

anchors

Next topic

encoding

This Page