Monday, 9 May 2011

Analysis and Exploration of Processing Applications.

Because my chosen processing tool is 'while-loop', I typed in 'while-loop' into the search engine on OpenProcessing to find applications people had made that contain a while loop.


I came across this application that I quite liked: 
1- http://www.openprocessing.org/visuals/?visualID=22793 
In this application it simulates a random walker which attaches itself to any structures it touches, which leads to an overall growth in the shape of the structure. The while in this application is whats keeping the walker wandering around looking for a position where it has a neighbor to attach to. This then turns ON its current position and attaches itself to the existing structure it is touching because the condition is TRUE. The while will continually attach the walker to a structure as long as it touches a existing structure. As soon as it doesn't touch or runs out of neighbors to attach to, the while will stop because the condition has become false.


      
Here is two images, one while its quite small, and one when its grown a little bit.






I have personally struggled with this task. I do understand my function but I find it really difficult to completely understand with it is doing in other peoples applications as i haven't written the code myself and i find decoding other applications quite difficult.

No comments:

Post a Comment