Skip to main content
100%

fresh block

✓ Published0🌍 Public
YYannael
Last edited Apr 15, 2016
Created on Apr 15, 2016

A blank canvas follows the mouse as a black or white circle, depending on whether the mouse button is pressed. The sketch uses p5.js’s `setup` and `draw` functions, with `createCanvas` setting a 640×480 drawing area and `ellipse` rendering an 80×80 circle at the current cursor position. The fill color toggles between black and white based on the `mouseIsPressed` state, creating a simple interactive painting tool. No data source is involved; it is a direct mouse-driven drawing example.

AI-generated description

Built with blockbuilder.org

Similar vizzes