from the povray tutorial sec. 3.1
()
| 173 | white = Texture(Pigment(color=(1,1,1))) |
| 174 | |
| 175 | def tutorial31(): |
| 176 | " from the povray tutorial sec. 3.1" |
| 177 | file=File("demo.pov","colors.inc","stones.inc") |
| 178 | cam = Camera(location=(0,2,-3),look_at=(0,1,2)) |
| 179 | sphere = Sphere( (0,1,2), 2, Texture(Pigment(color="Yellow"))) |
| 180 | light = LightSource( (2,4,-3), color="White") |
| 181 | file.write( cam, sphere, light ) |
| 182 | |
| 183 | def spiral(): |
| 184 | " Fibonacci spiral " |