Friday, 15 August 2014

_hello - Processing

https://googledrive.com/host/0B4B1DsWZ3yvvMkVldjJCMy1zeFE/_hello.app.zip
For me to be able to share the .app file I had to compress it to a .zip file so it uploads properly on to Google Drive.
https://googledrive.com/host/0B4B1DsWZ3yvvNzljYzJ3X3MteFE
The Processing file.

Instructions:
Press and release any key, add a mouse click and see what happens.

In this Processing scene you find a lot of different functions I have inputed, such as a loop(), mouseX and mouseY, mousePressed(), keyPressed(), keyReleased() and text(). I used the loop() function to duplicate a circle across the whole window/ viewer. To do this I had to make two different variables for the loop(), so that 'int = i' and 'int = j'. Putting then 'i' and 'j' into the first set of variables of the ellipse(x,y,x1,y1), looking like this ellipse(i,j,20,20). Putting random() into the variables of the colours creates a loop of different colours being selected. I have put in values to keep the colours in the same range rather than getting every single colour. The colours also change through the X and Y position of the mouse. To make it interactive I used mousePressed(), keyPressed() and keyReleased(). The mousePressed() pops up a bigger circle with the same colour spectrum as the smaller circles and it says '_hello' inside. Through experimenting I came across the noLoop() and using void keyPressed() and void keyReleased() to start and stop the loop. Weirdly it makes the mousePressed function only active when a key is being pressed but its not a big issue.

Iteration #1

Iteration #2 - Final Iteration



No comments:

Post a Comment