Log In  

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

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

1

LOVE! Plasma4life

P#64693 2019-05-23 13:45
3

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 | 2019-05-23 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

P#64697 2019-05-23 14:46

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]

Follow Lexaloffle:          
Generated 2024-03-28 23:08:58 | 0.021s | Q:27