Sunday, 13 May 2012

Creative Coding, Project Three, Blog Two

I now have my shapes rotating around the cursor at a speed dependent on the cursor speed (or change in cursor position). 
This code shows how 'if' it is at a certain cursor speed(s), the rotation(rot) will get faster by 0.05 each time. 
 I have also added some more layers of shapes for faster speeds, it is now beginning to look like a snowflake. In discovering this  decided to change the background to shades of blue instead of red.

Another thing I have done, well tried to do, is create an 'explosion' if the cursor speed goes over a certain speed. To create this explosion I want to have all the shapes surrounding the cursor to move further and further away from the cursor really fast until they are completely off the screen. In order to do this I firstly tried an 'if' statement saying, if the change in cursor distance is over a certain amount add a certain amount to the shape layers position on top of the mouseX and mouse Y position, hoping it would make the shapes move further away from the mouse each frame. However of course when it goes back through void draw it resets the shapes back to the mouseX mouseY position. So I tried putting it in void setup and using a 'while' statement, but that didn't work either as nothing happened. So that problem is still unsolved.

In terms of ideas to push on with, I've been thinking about having the position of the shapes not equal to the position of the mouse and also multiplying the number of these forms made from shapes. I think this would make it far more interesting and interactive rather than how controlled it currently is.

This idea would be kind of like the idea in this 'sea monkey' example we were shown in a lecture. Where in mine the shapes position is currently exactly the same as the mouses, while with the sea monkeys it's randomly within a circular radius of the mouse, for my snowflakes I think it would be better if it was like this, if not more random.

Here is my current application...
http://www.openprocessing.org/sketch/63592
Sea Monkeys
Something I found cool was this processing application on openprocessing.org
In this application they have used continuously spawning circles to create what looks like roots.
I thought that maybe further down the track I could possibly use something like this instead of my currently 'snowflake' looking form.
'roots' made of circles

No comments:

Post a Comment