Here are some photos from my exhibition piece for DSDN 142 project 3
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
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.
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
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
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
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
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
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.
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.
Thursday, 14 April 2011
development
After talking with Ben i have changed a bit to my program and instead of having a ball i am going to have a white line with a black square in it where the ball would be, so the white line acts in the same way as the ball but spreads across the whole screen.
I have changed some stuff from the original program which i have got. i have made it 500x500 and there is only one white ball on the screen
research
I have found a program on open processing which i am going to base my program off
http://www.openprocessing.org/visuals/?visualID=8493
What i am going to change is to only have 1 ball and the color of that ball as just white.
i also have to change the screen size to 500*500 and change a bit of the code so that it can work with the bigger screen size
http://www.openprocessing.org/visuals/?visualID=8493
What i am going to change is to only have 1 ball and the color of that ball as just white.
i also have to change the screen size to 500*500 and change a bit of the code so that it can work with the bigger screen size
New Project 2
I decided to change my project to so that i could do a program that i can understand more.
Now what happens for this one is that there is one ball bouncing around the screen at a constant speed. whenever you click on the screen a line will appear. ( there will be a maximum of about 15-20 lines abel to be on the screen).
Every time the ball goes over the line it will make a sound.
and depending on the Y point of the line the sound will be different with when Y=0 the sound will be have a higher pitch and when Y= 500 the sound will have a lower pitch
Thursday, 7 April 2011
Project 2 research
I went looking through open porcessing and i found this sletch which is what i am trying to do but on a bigger scale
Water-Surface
what i am going to try and do is to make the water ripples bigger when the screen size becomes 500x500pixcels
Water-Surface
what i am going to try and do is to make the water ripples bigger when the screen size becomes 500x500pixcels
Thursday, 31 March 2011
Project 2, transformation
For my 2nd Project i wanted to expand on what i did in the first one.
i really liked the idea of water ripples so i decided to incorporate that into my 2nd project
i really liked the idea of water ripples so i decided to incorporate that into my 2nd project
The quality might not be that good but what happens is that the screen will start off as a light blue sea color. When you click the first letter of some different colors which would be shown at the bottom of the screen you then can click on the screen and a ripple of that color will appear. When you click a sound which will be linked with the color will play. as the ripple gets bigger it will eventually fade as well as the sound. If i second ripple is made then the same thing will happen but that sound will take over from the sound of the first one, but if they collide then the color will change and also there will be a mix of the 2 different sounds being played and will fade with the ripples
Sunday, 27 March 2011
My reflection on project 1
I have learnt a lot of things in project 1. Before project 1 I didn’t know anything about processing and now I am getting to know how to use it more. I think it is very interesting and I would like to learn more about it. What keeps me motivated is that I really like using processing and seeing what I can get out of it.
For the next project I would like to learn more about loops and other short cuts that you can use on processing. My goal for the next project is to use less code but for that to do the same job as a code that is twice a long. To do this I would use loops and variables more.
Monday, 21 March 2011
Project 1 wallpapers
These are my four wallpapers for project 1. My inspration for these was the rippiling effect you get when you drop something onto water so in each image the ripples get bigger and start to fade near their sourse as the wallpapers go on
Thursday, 3 March 2011
Subscribe to:
Posts (Atom)