Monday, 30 May 2011

Thursday, 26 May 2011

200-300 words + Pseudo code

If/Else Function.

In coding the If/else statement states that if a certain action happens, for example if the mouse was pressed or something went over a certain point on the screen, then something would happen like the background might change colour. And the else part of the function is what is happening on the screen if that action doesn’t happen.

My metaphor is that the if/Else function is a pendulum with a magnet waiting to pick up or move a small magnetic object from underneath it.

My exhibition piece states that function quite well.
My exhibition piece is a pendulum. The pendulum has a circular magnet with a hole in the middle attached to a string.
There is a small magnetic object (like some paper clips, nails or something else magnetic) under the pendulum. If the pendulum goes over or past the small magnetic object, then the object will move in the direction that the pendulum is moving. Else if the pendulum is anywhere else in its motion then it won’t move the object.
I Think that this example gives the user a good idea on what the if/else function is and how it works.

Pseudo code

If (pendulums magnet is over small object) {
Small object moves in direction of pendulum
}
Else {Small object does not move}


Wednesday, 25 May 2011

Drawing

This is pretty much what i want my exhibition piece to do when you uses it to show the If/Else statement

Tuesday, 24 May 2011

4th and final idea

After getting feedback from the presentation, Ben  and from other students around Te Aro i have decided on one more idea for my project 3
I am still sticking with the If/Else statement. My new idea is a pendulum. And on the pendulum is a magnet . Underneath the magnet is something like a paper clip. I would really like to somehow get iron shavings to use instead of the paper clip because i think it will work really well for presentation. When the pendulum swings from side to side whenever the magnet is above the paper clip or iron shavings will move in the items underneath.

So my metaphor is, the if/Else function is a pendulum with a magnet waiting to pick up or move a small magnetic object from underneath it.


I think that this shows the If/Else statement quite well and that this model works well with it



Monday, 16 May 2011

plan

exhibition possiblities

Other than my first possible exhibition idea i have 2 other ideas on which i could do to show the if/else function.

My 2nd idea is to have a box with small holes all around it, but not big enough for anyone to see into the box, in the box there will be an air horn. And on top of the box i am going to have a button like the image underneath. I want to use a big red button so it tells people that it is meant to be pushed and that it draws their attention. The button will be attached to the air horn so when you press it the air horn will go off. Because you cant see in it i am hoping for it to be a surprise for the person when they press the button.



My 3rd idea is to have a plastic see through box, in the box there would be many metal objects such as nails so that a lot can go in them. i would then have a magnet on the outside attached to the box by a string so that the magnet cant be taken away. But if the magnet is put onto the box then it will attract all the nails inside the box and the nails will follow the magnet, else if the magnet isn't touching the box then the nails will stay still and not move

Monday, 9 May 2011

examples of if/else

http://www.openprocessing.org/visuals/?visualID=15768


this is saying that the key you press the  direction that you move


This program states that if the mouse is in the dimensions of the colors in the top right hand side then that is the color of the line. Else if is not then it is another color


http://www.openprocessing.org/visuals/?visualID=19216


This program says that if you were to click and move the mouse then it will move the image on the screen



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.