Christmass coding : RGB Plasma
It seems that I wasn't the only one with some demoscene nostalgia as Frans was first today with his cheesy rotozoomer!
Way to go Frans! :-) You can see his
christmass coding rotozoomer here.
Well I was more in the mood for a simple plasma. I started with the usual math stuff like
how did that cos / sin stuff worked and after that I had more questions like
how to have a fps indepandant time correct effect and
unsafe code for performance . But I wasn't really satisfied with the standard XOR'ed circles and decided to use the RGB components and merge them. Below is a screenshot but I seriously suggest you download the archive and see it running.
Most code was written today but some was in the fridge for months. Waiting for a day to finish it and well.. today was the codes lucky day.
Download c# RGB plasma (needs visual studio express to build)
I also included a rotating star field as a bonus ;-).. it was the first effect to see if the crappy gdi based code actually worked. Right click the effect for a context menu to select the framerate. Press F12 for a bitmap save of the effect.
Effect source is included.