xxxxxxxxxx
19
// Demonstrates how to use the CPX's mouse input as a paintbrush.
//
// This program is intended to be used with the CPX + MakeCode program:
// https://makecode.com/_3TV5iCe7mHup
//
// By Jon E. Froehlich
// https://jonfroehlich.github.io/
let brushSize = 50;
function setup() {
createCanvas(400, 400);
background(220);
}
function draw() {
// background(220);
circle(mouseX, mouseY, brushSize);
}