Project
Paint Lab
Creator & Solo Developer
Live DemoA tray of wet paint in your browser. Pick red, yellow, blue, white or black, drag to pour it, drag fast to stir, and the paints mix the way real paint does: blue and yellow make green, red and yellow make orange, all three make brown. The liquid is a fluid simulation that runs on the graphics card, written in plain WebGL2 with no library: each pixel holds an amount of each of the five paints, not a color, and those amounts flow, swirl and settle. The color of a pixel is then computed with the mixing rule of My Little Lab, my color mixing app for children, which blends pigments instead of averaging screen colors. That is why blue and yellow give green here, and not grey. The amount of paint is also read as a height and lit from one side, which gives the wet shine. When the page opens, three pools are poured and stirred on their own, until you touch the tray.
Stack
- WebGL2
- GLSL
- Fluid Simulation
- JavaScript
- Vite
- GitHub Actions
See it
Want something like this?
Tell me what you are building, or what you are still doing by hand, and I will tell you how I would approach it. No commitment.







