Colors

Functions and objects dealing with color.

epipack.colors.brighter(rgb)[source]

Make the color (rgb-tuple) a tad brighter.

epipack.colors.darker(rgb)[source]

Make the color (rgb-tuple) a tad darker.

epipack.colors.h2r(_hex)[source]

Convert a hex string to an RGB-tuple.

epipack.colors.r2h(rgb)[source]

Convert an RGB-tuple to a hex string.

epipack.colors.tohex(color)[source]

Convert any color to its hex string.

epipack.colors.torgb(color)[source]

Convert any color to an rgb tuple.