MCPcopy Create free account
hub / github.com/ActiveState/code / tutorial31

Function tutorial31

recipes/Python/205451_Povray_for_python/recipe-205451.py:175–181  ·  view source on GitHub ↗

from the povray tutorial sec. 3.1

()

Source from the content-addressed store, hash-verified

173white = Texture(Pigment(color=(1,1,1)))
174
175def 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
183def spiral():
184 " Fibonacci spiral "

Callers

nothing calls this directly

Calls 7

writeMethod · 0.95
CameraClass · 0.85
TextureClass · 0.85
PigmentClass · 0.85
LightSourceClass · 0.85
FileClass · 0.70
SphereClass · 0.70

Tested by

no test coverage detected