openobject.org

S3197121 ProcessingSketch - project 3

From Physical Programming

Media:GraceKim_processing.zip

For my Processing Sketch I got most of my codes from the processing site and from tutorials by Andy West which can be watched at http://vimeo.com/7577907.


Image:gkscreenshot1.jpg

the sketch starts off with a window size of 500 x 500 pixels with an image of cups which is also 500 x500. its important to make sure the background image is the same dimensions of the window otherwise it comes up with errors.


Image:gkscreenshot2.jpg

The mouse can be dragged on the screen to create a line - this line has random thicknesses set up to 10 when held down and also changes colours according to the postion of the X and Y coordinates of the mouse. - in the skecth you can see I've divided the mouseX and MouseY values by 3. this was done to select the range of colours i wanted to use.


Image:gkscreenshot3.jpg

When the mouse is released, a teapot shape appears. unlike the the background image(which is a jpg) this is a svg file which can be made in illustrator. these teapots have set dimensions, but have random coordinates that range from 0 to 90 for Y and 70 for X which change every time the mouse is released.


Image:gkscreenshot4.jpg

the text is controlled by the 't' key. it should appear in the bottom right corner and be a light green colour. to clear everything just hit the space bar.

CONTROLS:

mouse drag: the line changes stroke width and colour mouse release: a teapot appears in the top left corner 't' key: text in the bottom right space bar: clears screen by refeshing the bacground image.


It was interesting to see how the line works just like drawing in paint or similar programs. the program could be used on interactive screens with touch screens for kids to play with so they can draw on the screen with their fingers. instead of just lines shapes that can be programmed to move away from the point(mouse,finger)- like the smoke example in the programming examples. Another example is shapes which are projected in a dark room that grow and shrink and change colour when pressure is applied to sensors in the floors/walls/a feature.