xxxxxxxxxx
34
var c
function setup() {
c=createCanvas(400, 400);
c.parent("canvas")
strokeWeight(3);
background(220);
}
function draw() {
//drawGrid is a special function that I've written for this program.
//you CAN NOT use it in other p5 sketches.
drawGrid();
drawDot()
noFill();
translate(20,50);
ellipse(60,60,60);
translate(0,0);
rect(140,50,80,40);
translate(0,0);
rect(180,160,120,120);
translate(0,0);
triangle(100,180,40,240,140,220);
translate(0,0);
quad(260,120,280,80,340,80,342,140);
}