//This is my Drawing shapes the change depending on Time and mouse Imput. //I sort of got the size of the rectangle drawn by the mouse depending on the time too but you dont //seem to notice the size difference unless you draw something, wait and then proceed on drawing //something else. // This does 2 things. //One: Squares move accordingly due too seconds on the clock of the computer. I am not sure where //I was going with this. Neat idea to make a piece out of. //Two: You can draw with your mouse rectangles that randomly change color as you draw them. //The rectangles that are ticking do to the clock can't be drawn over but the ones already done //be. void setup() { size(400, 400); background(0); } void draw() { stroke(1); int s = second(); // Values from 0 - 59 int m = minute(); // Values from 0 - 59 int h = hour(); // Values from 0 - 23 if(mousePressed) { for(int i=0; i<100; i++); float r = random(50); fill(r,r-5,r+40); rect(mouseX, mouseY,s+1,s+1); } fill(s+225,40,0); rect(s+1, s+1, 25, 25); fill(s+40); rect(s+25, s+1, 25, 25); fill(s+40); rect(s+1, s+25, m+25, m+25); fill(s+40); rect(s+25, s+25, m+25, 25); fill(s+40); rect(s-25, s-25, 25, 25); fill(s+40); rect(s-50, s-25, 25, 25); fill(s+40); rect(s-25, s-50, 25, 25); fill(s+40); rect(s-50, s-50, 25, 25); fill(s+40,200,30); rect(s-50, s+25, 25, 25); fill(s+40); rect(s+25, s-50, 25, 25); fill(s+40,0,225); rect(200, 100, s+50, s+50); fill(s+40); rect(275, 200, s+50, s+50); fill(s+225); rect(125, 100, s+50, s+50); fill(s+40,s+50,s+20); rect(22, 325, s+50, s+50); fill(s+40); rect(0,100 , m+5, m+5); fill(s+40,200,200); rect(m+125, m+0, s+50, s+50); fill(s+40); rect(125, 200,m+5,m+5); fill(s+40); rect(100, 225,m+5,m+5); fill(s+120); rect(22-s+125,200,m+5,m+5); }