Light constructor

__init__(self)

Initializes a new instance of the Light class.


def __init__(self):
    ...

__init__(self, name)

Initializes a new instance of the Light class.


def __init__(self, name):
    ...
ParameterTypeDescription
namestrName

__init__(self, name, type)

Initializes a new instance of the Light class.


def __init__(self, name, type):
    ...
ParameterTypeDescription
namestrName
typeLightTypeNew light’s type

See Also