xxxxxxxxxx
int button_x = 150;
int button_y = 250;
int button_width = 300;
int button_height = 75;
int tri_1 = 100;
int tri_2 = 200;
int tri_3 = 300;
int tri_4 = 400;
int dont_touch = 10;
int line_pos_x = 200;
int line_pos_y = 40;
int maxCircleNum = 255;
void setup () {
size(600, 600);
background(0);
noStroke( );
}
void draw () {
fill(255);
triangle( tri_3, tri_2, tri_4, tri_1, tri_2, tri_1);//WHITE ARROW
rect(275, 0, 50, 100);//ARRROW STEM
rect(button_x, button_y, button_width, button_height);//WHITE BUTTON
fill(0);
triangle( tri_3, tri_2-10, tri_4-15, tri_1+5, tri_2+15, tri_1+5);//BLACK ARROW
rect(280, 0, 40, 110);//BLACK STEM
rect(button_x+5, button_y+5, button_width-10, button_height-10);//BLACK BUTTON
if (dont_touch > 11) {
fill(0, 255, 255);
rect(button_x+5, button_y+5, button_width-10, button_height-10);//BLACK BUTTON
triangle( tri_3, tri_2-10, tri_4-15, tri_1+5, tri_2+15, tri_1+5);//BLACK ARROW
rect(280, 0, 40, 110);//BLACK STEM
for (int circle_num = 0; circle_num < maxCircleNum; circle_num +=1) {
fill(0, random(maxCircleNum), 255);
noStroke ();
ellipse(random(width), random(mouseY), 40, 40);
}
} else {
fill(255);
textSize(20);
text("DON'T CLICK OR ELSE", 195, 293 );
}
}
void mousePressed () {
dont_touch = 15;
}