Here are some photos from my exhibition piece for DSDN 142 project 3
Richard Hpa DSDN142
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
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
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 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
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
Subscribe to:
Posts (Atom)