[Squeakland] OLPC pen trails for turtle graphics

Karl karl.ramberg at comhem.se
Thu Nov 1 02:06:49 PDT 2007


He is using the OLPC etoy image.
Karl


Bill Kerr wrote:
> Simon Guest <simon.guest at tesujimath.org 
> <mailto: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 
> <mailto: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 <mailto:Squeakland at squeakland.org>
>     http://squeakland.org/mailman/listinfo/squeakland
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Squeakland mailing list
> Squeakland at squeakland.org
> http://squeakland.org/mailman/listinfo/squeakland
>   




More information about the Squeakland mailing list