xxxxxxxxxx
16
function setup() {
createCanvas(windowWidth, windowHeight);
}
function draw() {
background(220);
fill(200)
noStroke();
ellipse(100, 100, 80, 80);
}
function mousePressed() {
if (mouseX >= 100 - 80 && mouseX <= 100 + 80 && mouseY >= 100 - 80 && mouseY <= 100 + 80) {
saveCanvas('myGraphics', 'jpg');
}
}