Skip to content

Instantly share code, notes, and snippets.

@XerxesZorgon
Created July 5, 2022 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save XerxesZorgon/e3ca1e889b4a5ad1fd3599d63fec77f0 to your computer and use it in GitHub Desktop.
Save XerxesZorgon/e3ca1e889b4a5ad1fd3599d63fec77f0 to your computer and use it in GitHub Desktop.
size(721,703);
background(0);
rectMode(CORNERS);
// Line width
int LW = 0;
// x line coordinates
int left_side = 550;
int x0 = 1;
int x1 = 594 - left_side;
int x2 = 688 - left_side;
int x3 = 828 - left_side;
int x4 = 1013 - left_side;
int x5 = 1189 - left_side;
int x6 = 1241 - left_side;
int x7 = 1271 - left_side + LW;
// y line coordinates
int top_edge = 372;
int y0 = 1;
int y1 = 398 - top_edge;
int y2 = 477 - top_edge;
int y3 = 540 - top_edge;
int y4 = 694 - top_edge;
int y5 = 818 - top_edge;
int y6 = 932 - top_edge;
int y7 = 983 - top_edge;
int y8 = 1037 - top_edge;
int y9 = 1075 - top_edge + LW;
// Colors
color red = color(228,61,52);
color yellow = color(253,238,0);
color blue = color(100,87,197);
color white = color(255,255,255);
color gray = color(215,218,225);
// Rectangle #1
fill(gray);
rect(x0,y0,x3-LW,y1-LW);
// Rectangle #2
fill(white);
rect(x3,y0,x4-LW,y2-LW);
// Rectangle #3
fill(gray);
rect(x4,y0,x5-LW,y2-LW);
// Rectangle #4
fill(yellow);
rect(x5,y0,x7-LW,y3-LW);
// Rectangle #5
fill(red);
rect(x1,y1,x2-LW,y3-LW);
// Rectangle #6
fill(white);
rect(x2,y1,x3-LW,y3-LW);
// Rectangle #7
fill(yellow);
rect(x3,y2,x4-LW,y3-LW);
// Rectangle #8
fill(blue);
rect(x4,y2,x5-LW,y3-LW);
// Rectangle #9
fill(white);
rect(x0,y3,x1-LW,y5-LW);
// Rectangle #10
fill(blue);
rect(x1,y3,x3-LW,y4-LW);
// Rectangle #11
fill(yellow);
rect(x3,y3,x4-LW,y4-LW);
// Rectangle #12
fill(gray);
rect(x4,y3,x5-LW,y4-LW);
// Rectangle #13
fill(red);
rect(x5,y3,x6-LW,y6-LW);
// Rectangle #14
fill(white);
rect(x6,y3,x7-LW,y6-LW);
// Rectangle #15
fill(white);
rect(x3,y4,x4-LW,y5-LW);
// Rectangle #16
fill(gray);
rect(x0,y5,x2-LW,y7-LW);
// Rectangle #17
fill(red);
rect(x2,y5,x3-LW,y8-LW);
// Rectangle #18
fill(white);
rect(x3,y5,x4-LW,y6-LW);
// Rectangle #19
fill(blue);
rect(x3,y6,x4-LW,y8-LW);
// Rectangle #20
fill(yellow);
rect(x4,y6,x5-LW,y8-LW);
// Rectangle #21
fill(white);
rect(x0,y7,x2-LW,y9-LW);
// Rectangle #22
fill(gray);
rect(x4,y8,x5-LW,y9-LW);
// Rectangle #23
fill(white);
rect(x5,y6,x7-LW,y9-LW);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment