A newbie needs some help in squeak (maths,
algorithm and drawing)
Damien Cassou
damien.cassou at gmail.com
Thu Apr 26 17:07:10 UTC 2007
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
|