"type": "spotlight",
"colour": "red",
"position": [700, 500],
- "direction": 90.0,
- "spread": 45.0,
"radius_limits": [20, 400],
"angle_limits": [90, 180],
"angular_velocity": 5,
"type": "lamp",
"colour": "yellow",
"position": [500, 500],
- "direction": -90.0,
- "spread": 45.0,
"intensity": 0.5
}
]
class Lamp(BaseLight):
FITTING_IMG = "lamp.png"
- def __init__(self, **kw):
- kw.pop("direction", None)
- kw.pop("spread", None)
- super(Lamp, self).__init__(**kw)
-
class SpotLight(BaseLight):
FITTING_IMG = "spotlight.png"
def __init__(self, **kw):
- kw.pop("direction", None)
- kw.pop("spread", None)
self.angular_velocity = kw.pop("angular_velocity", None)
super(SpotLight, self).__init__(**kw)