This is the code I used:
function setup() {
createCanvas(1400, 700);
}
function draw() {
background(0);
stroke('pink');
strokeWeight(6);
ellipse(250, 200, 500, 30);
rect(60, 40, 60, 30, 5);
background(200,100,175,150);
strokeWeight(3);
stroke('red');
noFill();
rect(100, 300, 200, 75, 5, 10, 15, 20);
triangle(350,10, 300,75, 400,50);
triangle(100,110, 280,120, 110,200);
quad(250,100, 150,30, 350,295, 250,75);
strokeWeight(5);
stroke('blue');
line(500,100, 1200,150);
line(500,100, 1200,200);
line(500,100, 1200,250);
line(500,100, 1200,300);
line(500,100, 1200,350);
line(500,100, 1200,400);
line(500,100, 1200,450);
line(500,100, 1200,500);
line(500,100, 1200,550);
line(500,100, 1200,600);
line(500,100, 1200,650);
line(500,100, 1200,700);
fill('pink');
stroke('orange');
beginShape();
vertex(500,100);
vertex(600,50);
vertex(700,100);
vertex(650,300);
vertex(550,250);
endShape(CLOSE);
fill(220,60,35,255);
background(200, 90);
stroke('purple');
circle(800, 600, 90);
circle(700, 600, 80);
circle(600, 600, 70);
circle(500, 600, 60);
circle(400, 600, 50);
circle(300, 600, 40);
circle(200, 600, 30);
circle(100, 600, 20);
circle(0, 600, 10);
strokeWeight(20);
stroke('green');
point(30,80);
point(30,120);
point(30,170);
point(30,250);
point(30,320);
point(30,480);
fill(92,220,55,150);
stroke(334,59,200);
strokeWeight(5);
rect(1000, 65, 420, 700);
}
No comments:
Post a Comment