xxxxxxxxxx
41
function setup() {
createCanvas(400, 400);
}
function draw() {
background(120);
rectMode(CENTER);
//interior, last one is alpha = transparency
fill(100, 225, 0, 150);
noStroke(100,0,0);
rect(200, 200, 150, 150);
noFill(150, 0, 0);
//outline
stroke(0, 0, 150);
//outline thickness
strokeWeight(5);
ellipse(150, 250, 100, 75);
stroke(0)
strokeWeight(1);
fill(100, 0, 0);
circle(275, 75, 30);
fill(100, 0, 100, 50);
strokeWeight(5)
stroke(150, 0, 150, 100)
triangle(225, 250, 275, 350, 325, 250);
//triangle that is not there
erase(100, 255);
noStroke();
triangle(250, 270, 275, 320, 300, 270)
//back to normal
noErase();
}