File: clockd.pov

package info (click to toggle)
povray 1%3A3.6.1-12
  • links: PTS
  • area: non-free
  • in suites: lenny, squeeze
  • size: 31,084 kB
  • ctags: 20,310
  • sloc: ansic: 110,032; cpp: 86,573; sh: 13,595; pascal: 5,942; asm: 2,994; makefile: 1,753; ada: 1,637
file content (27 lines) | stat: -rw-r--r-- 695 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Persistence Of Vision Ray Tracer POV-Ray 3.5 sample Scene
// by Chris Young
// CLOCKD.POV demonstrates basic use of the clock_delta identifier.
// Run this scene with various start & end clock values or frames.

#include "colors.inc"

light_source { <100,1000,-1000>, White}

camera { location <0,1,-16> direction 2*z look_at <0,1,0>}

union{
 cylinder{0,z,2 pigment{radial color_map{[0.5 Green][0.5 Cyan]} frequency 12 rotate x*90}}
 cone{0,0.25,y*2,0 pigment{Blue} rotate -z*clock*360}
 translate y*3
}

text{ttf "timrom.ttf" concat("clock_delta=",str(clock_delta,8,4)),0.1,0
 pigment{Red}
 translate -5*x
}

union {
 plane{y,-2} plane{-z,-10} plane{x,-10}
 pigment{checker Cyan,Yellow}
}