Home | Trees | Indices | Help |
|
---|
|
object --+ | Palette --+ | GradientPalette
Base class for gradient palettes
Gradient palettes contain a gradient between two given colors.
Example:
>>> pal = GradientPalette("red", "blue",4) >>> pal.get(2) (0.5, 0., 0.5)
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from Inherited from |
|
Creates a gradient palette.
|
Override this method in a subclass to create a custom palette. You can safely assume that v is an integer in the range 0..n-1 where n is the size of the palette.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Aug 16 21:30:47 2008 | http://epydoc.sourceforge.net |