[Fluxus] Turtle builder
gabor papp
gabor.lists at mndl.hu
Wed Jul 28 22:06:48 PDT 2010
hi Luis,
> repeat etc.) I found part of this code in the web but i can't make it
> work, i don't know what is missing.
you forgot to create the vertices and build the object. something like
this might work:
(clear)
(backfacecull 0)
(hint-unlit)
(define (spiral n)
(turtle-move (/ n 20))
(turtle-turn (vector 0 0 15))
(turtle-vert)
(if (> n 30)
1
(spiral (* n 1.02))))
(define (build-spiral n)
(turtle-reset)
(turtle-prim 0)
(spiral n)
(turtle-build))
(build-spiral 10)
i also made the spiral a bit smaller, to work better with the default
fluxus camera settings. the turtle turns around the z-axis now, so you
can see the result without rotating the scene.
you might find the turtle chapter of the fluxus documentation useful.
http://en.flossmanuals.net/Fluxus/TurtleBuilder
best,
gabor
More information about the Fluxus
mailing list