This is my first assignment for ICM.
I first started playing around with shapes in for loops. TheseĀ are a few of the patterns that I created.
The red triangles reminded me of the flags in the game Minesweeper, so I turned them into flags, like this.
Then added abstracted explosions with yellow triangles and lines.
***** code *****
void setup() {
size (700, 600);
background(255);
}
void draw() {
fill(255, 0, 0, 150);
//noStroke();
smooth();
for (int y = 30; y < height-30; y += 15) {
for (int x = 35; x < width-35; x += 13) {
/*fill(0-y);
noStroke();
triangle(x+11, y, x+6.5, y+8, x+15.5, y+8);
//fill(255, y-150, x-y, 150);*/
// flags
fill(255, 0, 0);
noStroke();
triangle(x-1, y, x+8, y-4, x+8, y+4);
stroke(0);
strokeWeight(1);
line(x+7, y+4, x+7, y+6);
line(x+2, y+7, x+7, y+7);
strokeWeight(2);
line(x+1, y+9, x+9, y+9);
stroke(y+50, y+50, y+50);
line(x-1, y, 300, 240);
}
}
//stroke(80);
rect(278, 238, 44, 44);
fill(150);
//bomb
fill(0);
noStroke();
ellipse(300, 260, 20, 20);
fill(255);
noStroke();
ellipse(296, 256, 5, 5);
//top
stroke(0);
strokeWeight(2);
line(300, 249, 300, 245);
//bottom
line(300, 271, 300, 275);
//left
line(289, 260, 285, 260);
//right
line(311, 260, 315, 260);
strokeWeight(2);
//top left
line(289, 248, 293, 252);
//top right
line(311, 248, 308, 251);
//bottom left
line(288, 272, 291, 269);
//bottom right
line(311, 272, 308, 269);
}