Skip to content

Instantly share code, notes, and snippets.

@madbunnykim
Last active September 10, 2017 20:47
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 madbunnykim/e70ab55e6cd1f0479c5531a19c9d84b1 to your computer and use it in GitHub Desktop.
Save madbunnykim/e70ab55e6cd1f0479c5531a19c9d84b1 to your computer and use it in GitHub Desktop.
Mini Aquarium
function setup() {
createCanvas(400, 400);
background(116, 187, 227);
}
function draw() {
fill(55, 143, 80);
noStroke();
triangle(0, 400, 10, 330, 20, 400);
triangle(20, 400, 30, 330, 40, 400);
triangle(40, 400, 50, 330, 60, 400);
triangle(60, 400, 70, 330, 80, 400);
triangle(80, 400, 90, 330, 100, 400);
triangle(100, 400, 110, 330, 120, 400);
triangle(120, 400, 130, 330, 140, 400);
triangle(140, 400, 150, 330, 160, 400);
triangle(160, 400, 170, 330, 180, 400);
triangle(180, 400, 190, 330, 200, 400);
triangle(200, 400, 210, 330, 220, 400);
triangle(220, 400, 230, 330, 240, 400);
triangle(240, 400, 250, 330, 260, 400);
triangle(260, 400, 270, 330, 280, 400);
triangle(280, 400, 290, 330, 300, 400);
triangle(300, 400, 310, 330, 320, 400);
triangle(320, 400, 330, 330, 340, 400);
triangle(340, 400, 350, 330, 360, 400);
triangle(360, 400, 370, 330, 380, 400);
triangle(380, 400, 390, 330, 400, 400);
fill(236, 136, 173);
noStroke();
ellipse(200, 200, 100, 60);
fill(236, 136, 173);
noStroke();
triangle(250, 200, 290, 170, 290, 230);
fill(0,0,0);
noStroke();
ellipse(170, 195, 10, 10);
fill(260);
noStroke();
ellipse(140, 190, 15, 15);
fill(260);
noStroke();
ellipse(125, 160, 18, 18);
fill(260);
noStroke();
ellipse(120, 130, 22, 22);
fill(260);
noStroke();
ellipse(100, 110, 25, 25);
fill(260);
noStroke();
ellipse(90, 70, 33, 33);
fill(260);
noStroke();
ellipse(97, 30, 38, 38);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment