Thursday, 5 May 2011

If/Else

I have decided to use the If/Else function for my Exhibition. In processing the description for this fucntion is

Else:
Extends the if() structure allowing the program to choose between two or more block of code. It specifies a block of code to execute when the expression in if() is false.

If:
Allows the program to make a decision about which code to execute. If the test evaluates to true, the statements enclosed within the block are executed and if the test evaluates to false the statements are not executed

My definition of it is that if some action were to happen then it would change something on the screen or a sound will play etc, but until that action were to happen then the screen would stay the same as it was when the program was started or the sound wouldnt play etc.

Project 3, Coding Exhibition

I have decided that i am going to do the If/else function for my Project 3
My Metaphor which i am going to use is:
Think if the If/Else function as a light switch. If the switch which the light is attached to is pressed then the light will light up. And if the switch isn't turned on then the light will stay dark

My first Idea for the Exhibition (which could change from now until the time when we have to hand it in) is to have a model set up with a lamp attached to a large switch like the image underneath. and when the switch is pressed the light will go on otherwise it will stay off

Monday, 2 May 2011

Link to final

Here is my final design
It is very different then i hoped it would have been becuase there are several things which i didnt know how to do and i couldnt find any help on it from open processing or from the processing website, and also becuase i was running out of time.

well in the end i have made it that when you release the mouse a sound will play. Sounds will also play when you hit the walls of the screen aswell as when you clear the screen
I am disapointed that it didnt turn out the way i had hoped for but if i had more time i would have figured out how to make it the way i wanted it to be

DSDN 142 Transformation

development 2

I changed the ball color from the original code. It was originaly white but i have changed it to have a different color for each ball
the line which you use to drag is also going to be a colour between grey and white

development

I decided that white on black looks better for the back ground for my code.
I made the lines transparent so that you can see where the lines come togeather
there will be a combined sound when the ball goes over those parts

Code

while looking through open processing i found a code which is like how i would like my code to look like.
I copied the code but now i cant find the original on open processing agian.
I am just adding this blog post to state that this isnt my own code which i am using but i have done several changes in the code

Project 2 3rd attempted

I decided to restart my project again so this is my new story board
It will start off with a screen with a line pattern like it is at the moment with the black lines
The rest will be just white
When you click and drag a line will apear where you drag
When you release the mouse a ball will apear and it will go in the direction which you relase it
And if the ball goes over one of the lines it will make a sound, a different line for each sound.