| Trees | Indices | Help |
|---|
|
|
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Computes the color at a given position of a color gradient.
|
Returns color gradient sampled to integers in
The returned samples are owned by
|
Samples a gradient to an array If If you don't have a reason for specific sample size (and are not going
to modify the samples or otherwise dislike the automatic resampling on
gradient definition change), use
|
Samples a color gradient to a provided pixbuf. Unlike Gradient.sample() which simply takes samples at equidistant points this method uses supersampling and thus it gives a bit better looking gradient presentation.
|
Returns the number of points in a color gradient.
|
Returns the point at given index of a color gradient.
|
Sets a single color point in a color gradient. It is an error to try to move points beyond its neighbours, or to move first (or last) point from 0 (or 1).
|
Sets the color of a color gradient point without moving it.
|
Inserts a point to a color gradient. It is an error to try to position a outside its future neighbours, or to move the first (or last) point from 0 (or 1).
|
Inserts a point into a color gradient based on its x position.
|
Deletes a point at given index in a color gradient. It is not possible to delete points in gradients with less than 3
points. First and last points should not be deleted unless there's
another point with
|
Resets a gradient to the default two-point gray scale state. |
Returns the complete set of color points of a gradient.
|
Sets the complete color gradient definition to a given set of points. The point positions should be ordered, and first point should start at 0.0, last end at 1.0. There should be no redundant points.
|
Reconstructs a color gradient definition from sampled colors. The result is usually approximate.
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Sat Feb 11 04:01:00 2012 | http://epydoc.sourceforge.net |