|
__init__(self,
filename=None)
o filename Location of a file containing colorscheme
information |
source code
|
|
|
translate(self,
color=None)
o color Color defined as an int, a tuple of three ints 0->255
or a tuple of three floats 0 -> 1, or a string giving
one of the named colors defined by ReportLab. |
source code
|
|
|
read_colorscheme(self,
filename)
o filename The location of a file defining colors in tab-separated
format plaintext as:
INT RED GREEN BLUE Comment
Where RED, GREEN and BLUE are intensities in the range
0 -> 255
e.g. |
source code
|
|
|
get_artemis_colorscheme(self)
Return the Artemis color scheme as a dictionary |
source code
|
|
|
artemis_color(self,
value)
o value An int representing a functional class in the Artemis
color scheme (see www.sanger.ac.uk for a description) |
source code
|
|
|
get_colorscheme(self)
Return the user-defined color scheme as a dictionary |
source code
|
|
|
|
|
int255_color(self,
values)
o values A tuple of (red, green, blue) intensities as
integers in the range 0->255 |
source code
|
|
|
float1_color(self,
values)
o values A tuple of (red, green, blue) intensities as floats
in the range 0 -> 1 |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|