◆ __init__()
def bridges.light.Light.__init__ |
( |
|
self, |
|
|
list |
position, |
|
|
str |
color |
|
) |
| |
◆ color() [1/2]
def bridges.light.Light.color |
( |
|
self | ) |
|
◆ color() [2/2]
def bridges.light.Light.color |
( |
|
self, |
|
|
* |
args, |
|
|
** |
kwargs |
|
) |
| |
Sets color for a an element or link.
Requires either 3 ints 0-255 for RGB and an optional float 0.0-1.0 for alpha or a str of a web color can also key the RGBA values with r, g, b, a or red, green, blue, alpha respectively and col_name for the str
- Parameters
-
args | int, int, int optional float or str |
kwargs | r/red: int, b/blue: int, g/green: int optional a/alpha: float or col_name: str |
◆ position() [1/2]
def bridges.light.Light.position |
( |
|
self | ) |
|
◆ position() [2/2]
def bridges.light.Light.position |
( |
|
self, |
|
|
list |
pos |
|
) |
| |
◆ color
bridges.light.Light.color |
The documentation for this class was generated from the following file:
- /home/erik/work/bridges/bridges-python/bridges/light.py