Log In  

Cart [#grenayino-0#] | Code | 2019-05-22 | License: CC4-BY-NC-SA | Embed

Yet another plasma demo! I've been meaning to implement this classic demo effect for years. Thanks to PICO-8 (which I've only just discovered!) I finally got around to it.

I created a continuous wrap around palette from the seven rainbow colours so I can cycle the palette continuously. I implemented these as sprites so I didn't have to mess around dithering, etc in the code.

Thanks to @rez for idea of each "pixel" being a 2x2 image.

Loads of room for improvement, but I'm pretty happy with this as a first attempt.

P#64682 2019-05-22 23:15


LOVE! Plasma4life

P#64693 2019-05-23 13:45

I felt like poking at this and making a version that used fill patterns, and also reduced CPU usage by not calculating trigonometric functions repeatedly when they could be calculated once per frame.

Here's a version that uses no sprites at all, and runs at 60fps with a lot of CPU leftover in fact if you uncomment the CPU meter code at the bottom. Enjoy comparing versus your own if you'd like!

Cart [#fuzzyplasma-0#] | Code | 2019-05-23 | License: CC4-BY-NC-SA | Embed

P#64697 2019-05-23 14:46
:: gc

Looks great @WolfWings! Looking forward to having a look at the code later when I get home.

P#64700 2019-05-23 16:07

[Please log in to post a comment]

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-10-21 00:05 | 0.049s | 4194k | Q:40