Log In  


Cart #bitplanecircles-1 | 2025-02-10 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
7


Circles appear with random sizes in cyan, "magenta" (pink), and yellow, and colors drawn over each other mix together.
Press ❎ to clear the screen
Press πŸ…ΎοΈ to switch to RGB (Same palette, but reversed)

I've had an idea for an idle/incremental game that I've been thinking about for awhile, but I never started working on it because the game would involve mixing colors, and I had no clue how I would do that. But recently I learned about bitplanes, and how they can be used to choose draw color based on what pixels were already there, rather than simply overriding them with the selected color.

This an example of using bitplanes to merge colors, using a custom palette and poke(0x5F5E) to change which color is drawn. The first palette is the default palette, while the subsequent three palettes show what everything becomes when the indicated color is drawn over them

I can't completely explain how this works, so if you want to know more, all of this is explained in much greater detain here

Expect that color mixing game I mentioned to come relatively soon

7


The colors look like acrylic paints or markers.πŸ–ŒοΈ



[Please log in to post a comment]