xxxxxxxxxx
29
function setup() {
createCanvas(400, 400);
}
function draw() {
background(100, 100, 145);
rectMode(CENTER);
fill(220, 100, 100);
noStroke();
strokeWeight(50);
rect(180, 200, 100, 100);
fill(200, 10, 100, 150);
strokeWeight(5);
stroke(200, 300, 100);
ellipse(mouseX, mouseY, 100, 100);
if mousePressed
{
let ellipse(200, 250, 100, 100);
}
//R G B A (A= Opacity)
//rect(x, y, w, h)
//triangle... each pair is xy for point
}