Geant4-11
Functions | Variables
source.colortable Namespace Reference

Functions

def float_rgb (name)
 
def int_rgb (name)
 

Variables

dictionary _colortable = { }
 

Detailed Description

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

Function Documentation

◆ float_rgb()

def source.colortable.float_rgb (   name)

Definition at line 16 of file colortable.py.

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

◆ int_rgb()

def source.colortable.int_rgb (   name)

Definition at line 12 of file colortable.py.

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

Variable Documentation

◆ _colortable

dictionary source.colortable._colortable = { }
private

Definition at line 24 of file colortable.py.