diff options
Diffstat (limited to 'example')
| -rw-r--r-- | example/cube.scene | 8 | ||||
| -rw-r--r-- | example/live.scene | 8 | ||||
| -rw-r--r-- | example/namedobjs.scene | 9 |
3 files changed, 25 insertions, 0 deletions
diff --git a/example/cube.scene b/example/cube.scene new file mode 100644 index 0000000..b9aebc3 --- /dev/null +++ b/example/cube.scene @@ -0,0 +1,8 @@ +(var string $texture) +(var number $speed 270) +(size 100 100) (fps 24) +(seq (/ 360 $speed)) (proj perspective (fov 37)) +(scene + (trans (t 0 3 5) (camera (pos 0 0 0))) + (trans (r y (* $speed (time))) (s 2) (cube (texture $texture))) +) diff --git a/example/live.scene b/example/live.scene new file mode 100644 index 0000000..aa72c4a --- /dev/null +++ b/example/live.scene @@ -0,0 +1,8 @@ +(var string $texture) +(var number $speed 270) +(size 100 100) (fps 24) +(seq (rep (inf) (/ 360 $speed))) (proj perspective (fov 37)) +(scene + (trans (t 0 3 5) (camera (pos 0 0 0))) + (trans (r y (* $speed (time))) (s 2) (cube (texture $texture))) +) diff --git a/example/namedobjs.scene b/example/namedobjs.scene new file mode 100644 index 0000000..e711b98 --- /dev/null +++ b/example/namedobjs.scene @@ -0,0 +1,9 @@ +(var string $texture) +(var number $speed 270) +(size 100 100) (fps 24) +(seq (pov c) (/ 360 $speed)) (proj perspective (fov 37)) +(scene + (bone center) + (trans (t 0 3 5) (camera c (attach center))) + (trans (r y (* $speed (time))) (s 2) (cube (texture $texture))) +) |
