A newbie needs some help in squeak (maths,
algorithm and drawing)
Gary Chambers
gazzaguru2 at btinternet.com
Thu Apr 26 17:10:57 UTC 2007
Of course. Cut and pasted from workspace (the code saves as ":=", naturally
;-)
-----Original Message-----
From: squeak-dev-bounces at lists.squeakfoundation.org
[mailto:squeak-dev-bounces at lists.squeakfoundation.org] On Behalf Of Damien
Cassou
Sent: 26 April 2007 6:07 pm
To: The general-purpose Squeak developers list
Subject: Re: A newbie needs some help in squeak (maths,algorithm and
drawing)
2007/4/26, Gary Chambers <gazzaguru2 at btinternet.com>:
> Perhaps something more like this...
>
>
> | theta r pen p|
> pen _ Pen new.
> len _ 200.
> ppr _ 10.
> 0 to: (len-1) do: [:i |
> theta _ 2 * Float pi * i / len * ppr.
> r _ i.
> p _ r * theta cos @ (r * theta sin).
> pen goto: p + Display boundingBox center]
with ':=' when you see '_' :-)
--
Damien Cassou
More information about the Squeak-dev
mailing list
|