Package gradient

Functions for handling colour gradients. More...


Classes

class  DiscreteGradient
 A gradient without any interpolation. More...
class  SimpleGradient
 A gradient between two colours with linear interpolation. More...

Functions

def map_gradient
 Maps a gradient to a grid, and returns the result as a new grid.


Detailed Description

Functions for handling colour gradients.


Function Documentation

def gradient.map_gradient (   gradient,
  grid 
)

Maps a gradient to a grid, and returns the result as a new grid.

A grid containing values in the range [0 1]

Definition at line 37 of file gradient.py.


Generated on Sun May 24 21:48:22 2009 by  doxygen 1.5.8