June 30, 2008

Playing around with Processing

Through my work in visualization, I've come across this really cool program and programming language called Processing which is basically a nerdier version of flash developed by people at MIT. I played around with it today. I generated a list of random numbers ranging from 0 to 255 and grouped them into 3s. The three numbers are used to make up the colour of an ellipse, and then the same three numbers are combined again to make up the x and y coordinates of the ellipse and the width and height. so basically, each possible shape has only one possible colour, and the order of the stacking of the shapes is random. Here's the image generated by the code ellipse(first,second,third,first*second/third,)


shape2.jpg

and here's the same set of data, with the slight difference in code being: ellipse(first,first*second/third,second,third).


shape3.jpg

In other news, today I was assigned my own research project in the biophysics lab. So instead of having to help debug other people's code, I get to debug my own crappy code! I was also offered a job for September, but it's a bureaucratic job with lots of work and little pay, so I don't think I'll consider it. I also made coconut curry tonight. It was delicious.


Posted by Cathy at June 30, 2008 09:17 PM
Comments