Hi all, about the turtle would it be hard to display a small turtle sprite where the "turtle" is and pointing to the right direction?
gabor papp <[email protected]> writes: > 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
