The color module provides a class gradient for continous transitions between
colors. A list of named gradients is available in appendix
| min=0, max=1) |
gradient. Different
initializations can be found in lineargradient and
functiongradient.
min and max provide the valid range of the arguments for
getcolor.
| parameter) |
| index, n_indices) |
| startcolor, endcolor, min=0, max=1) |
startcolor and endcolor must be colors of the same color model.
| functions, type, min=0, max=1) |
type is a string indicating the color model (one of "cmyk",
"rgb", "hsb", "grey")
functions is a dictionary that maps the color components onto given
functions. E.g. for type="rgb" this dictionary must have the keys
"r", "g", and "b".