Bridges-Python  3.4.4
Bridges(Python API)
Public Member Functions | Public Attributes | List of all members
bridges.light.Light Class Reference

Public Member Functions

def __init__ (self, list position, str color)
 
def position (self)
 
def position (self, list pos)
 
def color (self)
 
def color (self, *args, **kwargs)
 Sets color for a an element or link. More...
 

Public Attributes

 color
 

Constructor & Destructor Documentation

◆ __init__()

def bridges.light.Light.__init__ (   self,
list  position,
str  color 
)

Member Function Documentation

◆ 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
argsint, int, int optional float or str
kwargsr/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 
)

Member Data Documentation

◆ color

bridges.light.Light.color

The documentation for this class was generated from the following file: