Trigonometric Spirals

tags: flash · actionscript3 · kuler

Javascript & Flash required.
Step1: Get Flash Here
Step2: Enable Javascript.
Step3: Refresh.

More than a whole two months since the last post -- it's been a while. Here is a little item I dug up from some of the projects I had been working on while still in school. Essentially it randomly generates random points according to the sine and cosine functions, and connects lines between two points on each iteration.

One last interesting aspect is that the colors are loaded via a lookup to the Adobe kuler api. So if you don't like the colors it is using or can't see anything, refresh the page and it will reload a random kuler palette.

Also, the hex digits in the top corner keep track of the parameters used for a particular spiral, so you can use the box to re-draw previously generated spirals by pasting in the corresponding hex code.

Add A Comment

Some html formatting accepted. Please use Markdown syntax for entering formatting markup. All comments are moderated and we reserve the right to remove inappropriate material.