File: conelight.py

package info (click to toggle)
glitch 0.6-2.1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 488 kB
  • sloc: python: 3,432; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 390 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12

import glitch, glitch.glut
from glitch.limbo.lights import LightSwitch, ConeLight
from glitch.limbo.objects import make_test_scene

if __name__ == '__main__':
    camera = glitch.glut.GLUTCamera(eye=[0, 2, 3], children=[
        LightSwitch(children=[
            ConeLight(y=1.8, dy=-1, dz=0, cutoff=45., intensity=1.0,
                children=[make_test_scene()])])])
    camera.run()