Monday, 9 May 2011

the if/else statement...........

The second code I found from open processing is the gravity pulsar...................... it uses if/else statements throughout for  transformation and interaction of colour and shape. The code creates an abstract splash of colours................ by clicking the mouse the 'splash' that grows regenerates left for a fluid release and right for a more stylized reaction it also causes the colour to change.Unlike the clock this code relies on human interaction of clicking to kick in the if statement as the if/else statement tells the computer that if  the right or left mouse is clicked then the code that is currently running will change. This code is a good example of how an if and else statements can combine...

No comments:

Post a Comment