Functions | Variables
python.colortable Namespace Reference

Functions

def int_rgb (name)
 
def float_rgb (name)
 

Variables

dictionary _colortable = { }
 

Detailed Description

# ==================================================================
#   Python module
#
#   color table
#
#                                              Q, 2005
# ==================================================================

Function Documentation

def python.colortable.float_rgb (   name)

Definition at line 17 of file colortable.py.

17 def float_rgb(name):
18  rgb = _colortable[name]
19  return (rgb[0]/255., rgb[1]/255., rgb[2]/255.)
20 
21 
22 # ==================================================================
23 # RGB color table (/usr/lib/X11/rgb.txt)
24 # ==================================================================
def float_rgb(name)
Definition: colortable.py:17
def python.colortable.int_rgb (   name)

Definition at line 13 of file colortable.py.

13 def int_rgb(name):
14  return _colortable[name]
15 
16 
def int_rgb(name)
Definition: colortable.py:13

Variable Documentation

dictionary python.colortable._colortable = { }
private

Definition at line 25 of file colortable.py.