Week 2: Dra­w­i­n­g with code

by Elizabeth Hennessey
  • Show Sketch
/** @peep sketchcode */
size(400,400);
background(0, 255, 255); //fill background with aqua//
 
stroke(0);
strokeWeight(2);
line(30, 0, 370, 400);
line(70, 0, 330, 400);
line(110, 0, 290, 400);
line(150, 0, 250, 400);
line(190, 0, 210, 400); 
line(230, 0, 170, 400);
line(270, 0, 130, 400);
line(310, 0, 90, 400);
line(350, 0, 50, 400);
line(390, 0, 10, 400);
line(400, 30, 0, 370);
line(400, 70, 0, 330);
line(400, 110, 0, 290);
line(400, 150, 0, 250);
line(400, 190, 0, 210);
line(400, 230, 0, 170);
line(400, 270, 0, 130);
line(400, 310, 0, 90);
line(400, 350, 0, 40);
 
ellipse(200, 200, 250, 100);
fill(255, 0, 255);
ellipse(200, 200, 100, 100);
fill(0);
ellipse(200, 200, 50, 50);

Comments

Nobody has said anything yet.