File: imagecamera.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 (10 lines) | stat: -rw-r--r-- 254 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10

from glitch.limbo.objects import make_lit_test_scene
from glitch.PIL import ImageCamera

camera = ImageCamera(640,480,'out_%06d.jpg',eye=[0, 2, 3], children=[
    make_lit_test_scene()])

for i in range(10):
    camera.render()
    camera.eye[2] -= 0.1