🦋 Scales the drawing context.
If only one input parameter is provided, the drawing context will be scaled uniformly.
scaling factor along the x-axis
Optional
scaling factor along the y-axis
q5.draw = function () { background(0.8); scale(mouseX / 10); circle(0, 0, 20);}; Copy
q5.draw = function () { background(0.8); scale(mouseX / 10); circle(0, 0, 20);};
🦋 Scales the drawing context.
If only one input parameter is provided, the drawing context will be scaled uniformly.