void setup() { size(200, 200); background(255); } void draw() { background(255); rectMode(CORNERS); rect(50, 50, mouseX, mouseY); }