|
Author |
Topic: "Spiderweb" (Read 2245 times) |
|
rgovostes
|
"Spiderweb"
« on: Oct 6th, 2003, 1:09am » |
|
A quick sketch I wrote which generates a dynamic "spiderweb" (so named by Ivan Moscovich in his "Big Book of Brain Games"). It is based on code from DevApprentice LLC (www.devapprentice.com/exspiderweb.htm), since I don't have that book. The algorithm was designed to make still images with integer "skip" values. However, my sketch constantly redraws the spiderweb, using a float which is incremented by .01 each iteration. It seems to create an illusion of a moving tunnel or morphing sphere. Spiderweb v1 (Oct 05 '03)
|
« Last Edit: Oct 6th, 2003, 1:13am by rgovostes » |
|
|
|
|
rgovostes
|
Re: "Spiderweb"
« Reply #1 on: Oct 9th, 2003, 2:43am » |
|
I revised the code a bit, reducing the number of math required per iteration. I also implemented a technique inspired by toxi - it now precalculates the values for sine and cosine. On the other hand, the new version antialiases all drawn lines, which probably cancels out any speed improvements I made. If you want a more precise picture, you can decrease the "step" variable. For more detailed pictures, increment the 100 in spiderWeb(value, 100); Spiderweb v1.1 (Oct 10 '03)
|
|
|
|
|