ColorTransferFunction.
add_step
(start, stop, value)[source]¶Adds a step function to the transfer function.
This accepts a start and a stop, and then in between those points the transfer function is set to the maximum of the transfer function and the value.
Parameters: | start : float
stop : float
value : list of 4 floats
|
---|
Examples
This adds a step function that will produce a white value at > -6.0.
>>> tf = ColorTransferFunction( (-10.0, -5.0) )
>>> tf.add_step(-6.0, -5.0, [1.0, 1.0, 1.0, 1.0])