Trees | Indices | Help |
---|
|
object --+ | BaseTree.TreeElement --+ | PhyloElement --+ | BranchColor
Indicates the color of a clade when rendered graphically.
The color should be interpreted by client code (e.g. visualization programs) as applying to the whole clade, unless overwritten by the color(s) of sub-clades.
Color values must be integers from 0 to 255.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
|
|||
|
|
|||
color_names =
|
|
|||
Inherited from |
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Construct a BranchColor object from a hexadecimal string. The string format is the same style used in HTML and CSS, such as '#FF8000' for an RGB value of (255, 128, 0). |
Return a 24-bit hexadecimal RGB representation of this color. The returned string is suitable for use in HTML/CSS, as a color parameter in matplotlib, and perhaps other situations. Example: >>> bc = BranchColor(12, 200, 100) >>> bc.to_hex() '#0cc864' |
Return a tuple of RGB values (0 to 255) representing this color. Example: >>> bc = BranchColor(255, 165, 0) >>> bc.to_rgb() (255, 165, 0) |
Preserve the standard RGB order when representing this object.
|
Show the color's RGB values.
|
|
color_names
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Nov 26 15:43:51 2010 | http://epydoc.sourceforge.net |