File: cube.py

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

import glitch, glitch.glut
from glitch.limbo.lights import LightSwitch, DiffuseLight
from glitch.limbo.material import Material
from glitch.limbo.objects import Cube

camera = glitch.glut.GLUTCamera(eye=[-2, 2, 2], fovx=30, fovy=30, children=[
    LightSwitch(children=[
        DiffuseLight(x=-4, y=5, z=3, children=[
            Material(g=0.6, children=[
                Cube()])])])])
camera.run()