202. Video & Imaging 989. Pixel Art

Special Snowflake

The last time I used processing wasย many moons ago. Since then it has been all p5 and arduino…until now! Processing’s updated 3.0 version is roaring on my computer. Here is one of my first new creations:

The “blue” element of each pixels rgb color is controlled by the mouses distance from the top-left corner, as calculated here:

float mouseMove = mouseX*mouseY;
float newBlue = map(mouseMove,0,80000,0,255);
fill(newRed/2, newGreen/2, newBlue/2);

The full code can be found on GitHub here.

Leave a Reply

Your email address will not be published. Required fields are marked *