colors
-
lib.colors.HTMLColorToPILColor(colorstring)
- converts #RRGGBB to PIL-compatible integers
-
lib.colors.HTMLColorToRGB(colorstring)
- convert #RRGGBB to an (R, G, B) tuple
-
lib.colors.HTMLColorToRGBA(colorstring, opacity)
-
lib.colors.PILColorToHTMLColor(pil_integer)
-
lib.colors.PILColorToRGB(pil_color)
- convert a PIL-compatible integer into an (r, g, b) tuple
-
lib.colors.RGBToHTMLColor(rgb_tuple)
- convert an (R, G, B) tuple to #RRGGBB
-
lib.colors.RGBToPILColor(rgb_tuple)