[Squeakland] OLPC pen trails for turtle graphics
Bill Kerr
billkerr at gmail.com
Wed Oct 31 22:57:07 PDT 2007
Simon Guest <simon.guest at tesujimath.org> wrote:
A simple script like this:
Repeat 2 times
Star forward by 100
Star turn by 90
---------------------------------
I can't see how to program
Repeat 2 times
in etoys
ie. to repeat something a certain number of times programmatically?
I tried in the text editor too but didn't work:
script3
4 timesRepeat:
[self forward: 5 * 10.
self turn: 90.
self forward: 50]
-- =
Bill Kerr
http://billkerr2.blogspot.com/
On Oct 21, 2007 5:10 AM, Simon Guest <simon.guest at tesujimath.org> wrote:
> Hi,
>
> I'm just about to start my own kids off on some OLPC Etoys
> investigation, so I had a quick play, intending to make some turtle
> style polygons. It didn't work as I expected.
>
> A simple script like this:
>
> Repeat 2 times
> Star forward by 100
> Star turn by 90
>
> did not leave an L shape trail as I expected, but a diagonal line from
> the start to the finish position.
>
> Is this how pen trails are supposed to work? How do I draw a classic
> polygon, where the start and finish positions are the same?
> Currently no pen trail is left at all.
>
> cheers,
> Simon
>
> _______________________________________________
> Squeakland mailing list
> Squeakland at squeakland.org
> http://squeakland.org/mailman/listinfo/squeakland
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://squeakland.org/pipermail/squeakland/attachments/20071101/ea6440=
e8/attachment.htm
More information about the Squeakland
mailing list