Home | Trees | Indices | Help |
|
---|
|
object --+ | Palette --+ | GradientPalette --+ | AdvancedGradientPalette
Advanced gradient that consists of more than two base colors.
Example:
>>> pal = AdvancedGradientPalette(["red", "black", "blue"], n=8) >>> pal.get(2) (0.5, 0., 0.) >>> pal.get(7) (0., 0., 0.75)
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from Inherited from |
|
Creates an advanced 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 |