Home | Trees | Indices | Help |
|
---|
|
Color handling functions.
License: Copyright (C) 2006-2007 Gabor Csardi <csardi@rmki.kfki.hu>, Tamas Nepusz <ntamas@rmki.kfki.hu> MTA RMKI, Konkoly-Thege Miklos st. 29-33, Budapest 1121, Hungary This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
AdvancedGradientPalette Advanced gradient that consists of more than two base colors. |
|||
GradientPalette Base class for gradient palettes |
|||
Palette Base class of color palettes. |
|
|||
|
|||
|
|
|||
__loader__ = <zipimporter object "/Library/Python/2.5/site-pac
|
|||
known_colors =
|
|||
palettes =
|
|
Converts a color given in one of the supported color formats to R-G-B values. Examples: >>> color_name_to_rgb("red") (1., 0., 0.) >>> color_name_to_rgb("#ff8000") (1., 0.50196078431372548, 0.) >>> color_name_to_rgb("#08f") (0., 0.53333333333333333, 1.) >>> color_name_to_rgb("rgb(100%, 50%, 0%)") (1., 0.5, 0.)
|
|
__loader__
|
known_colors
|
palettes
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Aug 16 21:30:46 2008 | http://epydoc.sourceforge.net |