misc#

Functions

all_equal(it)

Returns true if all elements are equal to each other

color_to_integer(color)

Given a PIL ImageColor string, return a packed integer.

color_to_triple([color])

Given a PIL ImageColor string, return a triple of integers representing the red, green, and blue values.

listify_uris(uris)

Convert to URI to list if needed.

normalize_color(color)

Convert color representation to a float 3-tuple with values in [0-1].

rgb_to_int_array(rgb_array)