xxxxxxxxxx
50
function setup() {
createCanvas(600, 600);
}
function draw() {
background(220);
strokeWeight(1);
noFill();
var x = 100;
var y = 100;
arc(x,y,100, 100,0,radians(300),PIE);
circle(x-25,y-20,10);
for(var i=170; i<width; i+=20){
circle(i,100,10);
}
push();
translate(100,300);
rotate(radians(-30));
ellipse(0,0, 50, 70);
pop();
bezier(200,200,400,400,500,400, 500,200);
triangle(100,500,490,590, 470, 200);
for(var j = 0; j < 5; j++){
for(var p = 0; p < 5; p++){
square(300 +(j*50), 300 + (p*50), 40, 15, 10, 12, 0);
}
}
line(10,200,10,500);
strokeWeight(10);
point(30,300);
strokeCap(ROUND);
line(50, 300, 150, 300);
strokeCap(SQUARE);
line(50, 320, 150, 320);
strokeCap(PROJECT);
line(50, 340, 150, 340);
}