Discussion:
Algorithm for AfterDark's 'Rose' - trigonometry
(too old to reply)
g***@gmail.com
2013-08-14 18:47:53 UTC
Permalink
Does anyone remember the screensaver 'Rose' from the After Dark
screensaver?
It basically draws several dots on the screen which move about in
circular patterns.
(It also uses colour cycling and trails to give a nicer effect)
The help file said it used trigonometry, but nothing beyond that.
I assume it's something to do with polar coordinates.
Can anyone enlighten me?
TIA
Chris
Chris,

Did you ever find the answer to this question? I, too, have often wondered about the code for that screensaver. I wish I re-create it for my modern OS's...

Thanks,
Glenn
c***@gmail.com
2018-06-13 15:04:25 UTC
Permalink
Does anyone remember the screensaver 'Rose' from the After Dark
screensaver?
It basically draws several dots on the screen which move about in
circular patterns.
(It also uses colour cycling and trails to give a nicer effect)
The help file said it used trigonometry, but nothing beyond that.
I assume it's something to do with polar coordinates.
Can anyone enlighten me?
Twenty years later...

The original developer of the Rose screensaver has revived it to work on modern releases of macOS, and has released it as freeware:

http://www.sticksoftware.com/software/Rose.html

Chris
Noskosteve
2018-06-14 00:49:31 UTC
Permalink
For my laser light show software I had what I called my Circle Generator. A Sine and Cosine, one for horiz and the other for vert.

By stepping the angle small amounts, you get a circle.
By using varying amounts you can get many patterns, not just a circle; some still and some animated.

Stepping in 90 degree steps you get a square. 89 or 91 degrees is a slowly rotating square. 72 degrees is a star and 71 or 73 is a rotating star.
There are endless possibilities once you understand what's going on and get some experience picking increments and ways to vary the variables.

You can also step the two angles as well as the two radius variables (the sin & cos Magnitude) in unison or independently. I got many good patterns and burned them into one show in ROM and bring that projector out front every Halloween.

The image on that web page looks like it used mirroring which I didn't.
By stepping the angle in really large steps, you can also get artifacts from the trig algorithm of the software you use.

On some I added Z axis rotations.

Regards, Steve Noskowicz
Post by c***@gmail.com
Does anyone remember the screensaver 'Rose' from the After Dark
screensaver?
It basically draws several dots on the screen which move about in
circular patterns.
(It also uses colour cycling and trails to give a nicer effect)
The help file said it used trigonometry, but nothing beyond that.
I assume it's something to do with polar coordinates.
Can anyone enlighten me?
Twenty years later...
http://www.sticksoftware.com/software/Rose.html
Chris
Loading...