Add a Gaussian distribution to the transfer function.
Typically, when rendering isocontours, a Guassian distribution is the
easiest way to draw out features. The spread provides a softness.
The values are calculated as .
Parameters : | location : float
width : float
height : list of 4 float
|
---|
Examples
This adds a red spike.
>>> tf = ColorTransferFunction( (-10.0, -5.0) )
>>> tf.add_gaussian(-9.0, 0.01, [1.0, 0.0, 0.0, 1.0])