pygal.colors module¶
This package is an utility package oriented on color alteration.
This is used by the pygal.style
package to generate
parametric styles.
-
pygal.colors.
desaturate
(color, percent)[source]¶ Desaturate a color by decreasing its saturation by percent
-
pygal.colors.
is_foreground_light
(color)[source]¶ Determine if the background color need a light or dark foreground color
-
pygal.colors.
lighten
(color, percent)[source]¶ Lighten a color by increasing its lightness by percent
-
pygal.colors.
parse_color
(color)[source]¶ Take any css color definition and give back a tuple containing the r, g, b, a values along with a type which can be: #rgb, #rgba, #rrggbb, #rrggbbaa, rgb, rgba