size(740,280); //sets size of canvas in pixels
background (1); //sets background color to black
int x1=60; //declaring value of x1
int y1=60; // declaring value of y1
int x2=680; //declares value of x2
int y2=60; // declares value of y2
noStroke (); //no outline
smooth(); //softens then line edges
fill (220,220,20); //assign color yellow
ellipse (60,60,40,40); //four yellow circles for the corners
ellipse (60,220,40,40);
ellipse (680,220,40,40);
ellipse (680,60,40,40);
quad (60,40,60,60,680,60,680,40); //yellow background
quad (60,220,60,240,680,240,680,220);
quad (40,60,40,220,700,220,700,60);
fill (1); //assing black to shapes
quad (60,60,60,220,100,220,100,60); //inner black fill blocks
quad (100,60,100,100,220,100,220,60);
quad (220,60,220,120,440,120,440,60);
quad (240,120,240,140,280,140,280,120);
quad (440,60,440,100,620,100,620,60);
quad (640,60,640,100,680,100,680,60);
quad (660,140,660,220,680,220,680,140);
quad (440,180,440,220,670,220,660,180);
quad (580,160,580,180,600,180,600,160);
quad (320,160,320,220,440,220,440,160);
quad (200,140,200,220,320,220,320,140);
quad (100,180,100,220,180,220,180,180);
stroke (255,10,10); //sets line color to red
strokeWeight (2); // sets thickness of line
line (x1,y1,x2,y2); //top horizontal red line
line (x1,y1+80,x2,y2+80); //middle horizontal red line
line (x1,y1+160,x2,y2+160); //bottom horizontal red line
line(60,60,60,220); //draws first vert red line
line(680,60,680,220); //draws last vert red line
for (int x=100; x<=640 && x>= 100; x+=20){
line(x,60,x,220);
} // this line will be drawn at every 20 pixels from x100-x640
|