[Fluxus] turtle draw-instance
gabor papp
gabor.lists at mndl.hu
Sat Jan 24 13:17:50 PST 2009
i encountered a strange problem with draw-instance when used with
objects build with the turtle. in the attached code i tried to build a
square and draw it three times, but only one is displayed. am i missing
something?
(clear)
(hint-unlit)
(define (build-square)
(turtle-reset)
(turtle-prim 1)
(for ([i (in-range 4)])
(turtle-vert)
(turtle-move 1)
(turtle-turn (vector 0 0 90)))
(turtle-build))
(define s (build-square))
(with-state
(translate (vector 2 0 0))
(draw-instance s))
(with-state
(translate (vector 4 0 0))
(draw-instance s))
best,
gabor
More information about the Fluxus
mailing list