Computer Science Canada Spiral Draw |
Author: | Cezna [ Mon May 31, 2010 4:33 pm ] | ||
Post subject: | Spiral Draw | ||
This is a program I made to experiment with drawing circles manually (as opposed to using the drawoval procedure) Right now it draws a spiral, but you can make it draw a circle by setting rchange to 0. Pretty much all of the variables of consequence are at the top where they are easy to change. If r becomes less than or equal to x, it draws a straight vertical line instead of continuing to spiral. If anyone can figure out why (I have a vague idea, but I need to know exactly why), please tell me. It's not very efficient either, of that I am sure, so if anyone can improve, please post the code. So here it is, feel free to do whatever you want with it: EDIT: just learned that I just use the code tag, so I fixed that to make it more readable.
|