big brother and little brother

week six – thursday 22nd august

processing: final
This final output for processing is a different version of the original ‘The False Mirror’ output generated in week two. This output generates two floating eyes, with the movement of each controlled by the mouse. This is done by substituting X and Y integer variables for ‘Mouse X‘ and ‘Mouse Y‘. These are swapped over for the smaller eye, creating a dynamic composition in which the eyes move together harmoniously but as opposites. The eye colour change is made using a series of ‘if’ statements in which an action (keyPressed) is called. I have assigned specific colours to each key to reflect a range of different eye colours.

ellipse(mouseX,mouseY, 180,180);
if (keyPressed && (key == ‘q’))
fill (91, 128, 189); //dark blue
if (keyPressed && (key == ‘w’))
fill (42, 163, 59); //green
if (keyPressed && (key == ‘e’))
fill (125, 138, 59); //hazel one
if (keyPressed && (key == ‘r’))
fill (140, 125, 50); //hazel two
if (keyPressed && (key == ‘t’))
fill (25, 90, 39); //brown
if (keyPressed && (key == ‘y’))
fill (43, 29, 7 ); //dark brown
ellipse(mouseX,mouseY, 180,180);

The repeat of the ellipse at the end of the series of ‘if’ statements ensures that a loop is created that the statements can work on. Without this last line of code the statements have nothing to apply their fill to.
The naming of this output is in reference to big brother always watching. The smaller eye or ‘little brother’ was added to create a more dynamic composition in which the pair of eyes could interact.

Leave a comment

Design a site like this with WordPress.com
Get started