130 cpoly
Click here for code for two routines, cpoly and cpolyMultiColor, that you can cut and paste and play with. Cpoly draws a polygon centered at the turtle's location.
To please myself (a lot!), I used trigonometry, which you need not do. On the other hand, if you would like to draw something more complex than you've done before, I would be very happy to help you figure out how. You might look at a precalculus book, especially the section on polar coordinates, for inspiration.

This picture was borrowed from this page at the University of Georgia.
Here's a whole collection of famous curves. We can do all of these with Logo.

0 Comments:
Post a Comment
<< Home