Home | Trees | Indices | Help |
|
---|
|
object --+ | ??.instance --+ | Color
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
Class Variables | |
__instance_size__ = 24
|
|
__safe_for_unpickling__ = True
|
|
_c___module__ =
|
Properties | |
a Gets or sets the alpha component. |
|
b Gets or sets the blue component. |
|
g Gets or sets the green component. |
|
r Gets or sets the red component. |
|
Inherited from |
Method Details |
__eq__( (Color)arg1, (Color)arg2) -> object : C++ signature : _object* __eq__(mapnik::color {lvalue},mapnik::color) |
__getinitargs__( (Color)arg1) -> tuple : C++ signature : boost::python::tuple __getinitargs__(mapnik::color) |
__init__( (object)arg1, (int)r, (int)g, (int)b, (int)a) -> None : Creates a new color from its RGB components and an alpha value. All values between 0 and 255. C++ signature : void __init__(_object*,int,int,int,int) __init__( (object)arg1, (int)r, (int)g, (int)b) -> None : Creates a new color from its RGB components. All values between 0 and 255. C++ signature : void __init__(_object*,int,int,int) __init__( (object)arg1, (str)color_string) -> None : Creates a new color from its CSS string representation. The string may be a CSS color name (e.g. 'blue') or a hex color string (e.g. '#0000ff'). C++ signature : void __init__(_object*,std::string)
|
__ne__( (Color)arg1, (Color)arg2) -> object : C++ signature : _object* __ne__(mapnik::color {lvalue},mapnik::color) |
helper for pickle
|
repr(x)
|
__str__( (Color)arg1) -> str : C++ signature : std::string __str__(mapnik::color {lvalue})
|
to_hex_string( (Color)arg1) -> str : Returns the hexadecimal representation of this color. Example: >>> c = Color('blue') >>> c.to_hex_string() '#0000ff' C++ signature : std::string to_hex_string(mapnik::color {lvalue}) |
Property Details |
aGets or sets the alpha component. The value is between 0 and 255.
|
bGets or sets the blue component. The value is between 0 and 255.
|
gGets or sets the green component. The value is between 0 and 255.
|
rGets or sets the red component. The value is between 0 and 255.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Jun 3 18:45:01 2013 | http://epydoc.sourceforge.net |