xxxxxxxxxx
21
function setup() {
createCanvas(400, 400);
rectMode(CENTER); //fixes the left corner issue
}
function draw() {
background(52, 204, 235); //0-255 greyscale, you can do name of color, or hex
fill(210);
strokeWeight(20);
stroke("blue");
ellipse(200,200,200,200); //(x, y, w, h) x,y is the center point
noStroke();
fill("purple");
rect(200, 200, 100, 100); //rectangles draw from left hand corner (x, y, w, h)
strokeWeight(10);
stroke(0);
line(90,100,300,310);
print(mouseX, mouseY); //let's you know where mouse is, *love this function*
}