Saturday, 30 April 2011
Final code Screen shot
This is a screen shot of my final working code.. Not much has changed except colours. I have chosen a selection of different greens so that no colours clash. I also found a cool thing from Kiran Matthews that makes my circles pulsate in and out which i thought added quite a cool effect.
Open Processing Link: http://openprocessing.org/visuals/?visualID=27811
code developments 3
Well after a large amount of reasearch into array lists I finally gave up and decided to make variables for each circle that was made..So at the moment a left click makes a larger circle and a right click makes a smaller circle, both of which make their corresponding sounds as the line passes through them. I then ran into the problem of how to reaset the application so you couldnt make infinate circles. So I have made it so that the 11th click of each button makes the 10 excisting circles disapear.. this means you can only have a maximum of 20 circles on the page at one time.. Next thing to do is decide on a colour scheme..
Code developments 2
At this point I added in my sounds.. I have chosen drum sounds that I have made on garage band, The idea being that you can make your own drumbeats.. Once I got the sounds playing the trick was to make them play as the larger pulsating circle hits them.. After playing round with it I found that i could get the sound to play only at the x or y co ordinate but not both.. meaning the sounds would play but they would play out of time with the pulsating circle.. At which point I admit frustration kicked in and I ditched the pulsating circle and instead went for a slightly more boring line that moves across the screen..
Here is the code with the moving line instead of the pulsating circle.. The good news is now I have a working code. Each circle plays its noice as the line hits the center co ordinate. Now for the tricky part of making more than two circles
Here is the code with the moving line instead of the pulsating circle.. The good news is now I have a working code. Each circle plays its noice as the line hits the center co ordinate. Now for the tricky part of making more than two circles
Thursday, 14 April 2011
code developments two
I have managed to make a circle that when left clicked it gets bigger and right clicked it gets smaller.. However i want to be able to click and leave the circles once the mouse is let go.. I am going to try and make it so a right and left click make a certain sized circle then try to make it so once clicked the circles will stay where they are. This way i thnk my code will be easier to understand and easier for me to try and code.
This is the code that allows me to click and leave circles using a left and right click however i still cannot make more than one of each.. I am first going to add a sound to this code and see if i can make it play when the pulsating circle hits one of the smaller circles.. Once i have done this i will at least have a working code that i can build off.
This is the code that allows me to click and leave circles using a left and right click however i still cannot make more than one of each.. I am first going to add a sound to this code and see if i can make it play when the pulsating circle hits one of the smaller circles.. Once i have done this i will at least have a working code that i can build off.
Code developments 1
This is the first development screen shot... this circle is set to expand its diameter by 5 each refresh which i may change once i get the code working and see if the sounds are playing to fast.. Iv gone for quite a dark background and a brighter circle. I was thinking about putting some sort of background picture in but it would get quite confusing in later stages once there is many circles on the screen
Subscribe to:
Posts (Atom)