API Reference for Enthought Tool Suite 3.2.0
The common code for a gradient editor for tvtk.LookupTables and tvtk.VolumeProperty color transfer functions. Most of the code is independent of tvtk however.
The toolkit specific code is in toolkit specific files. This code is distributed under the conditions of the BSD license.
This code was originally written by Gerald Knizia <cgk.d@gmx.net> and later modified by Prabhu Ramachandran for tvtk and MayaVi2.
Copyright (c) 2005-2006, Gerald Knizia and Prabhu Ramachandran
Convert color from HSVA to RGBA.
input: h,s,v,a are from [0..1] output: r,g,b,a are from [0..1]
See http://en.wikipedia.org/wiki/HSV_color_space Only difference: hue range is [0..1) here, not [0..360).
linearly interpolate between arguments arg0 and arg1.
The weight f is from [0..1], with f=0 giving arg0 and f=1 giving arg1
Convert color from RGBA to HSVA.
input: r,g,b,a are from [0..1] output: h,s,v,a are from [0..1] (h will never be 1.0)
See http://en.wikipedia.org/wiki/HSV_color_space Only difference: hue range is [0..1) here, not [0..360).
| Local name | Refers to |
|---|---|
| splitext | os.path.splitext |
| tvtk | enthought.tvtk.tvtk.tvtk |
© Copyright 2002-2009 Enthought, Inc.