Deprecated: Assigning the return value of new by reference is deprecated in /home/huffmanc/www/milankie/wordpress/wp-settings.php on line 520

Deprecated: Assigning the return value of new by reference is deprecated in /home/huffmanc/www/milankie/wordpress/wp-settings.php on line 535

Deprecated: Assigning the return value of new by reference is deprecated in /home/huffmanc/www/milankie/wordpress/wp-settings.php on line 542

Deprecated: Assigning the return value of new by reference is deprecated in /home/huffmanc/www/milankie/wordpress/wp-settings.php on line 578

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/huffmanc/www/milankie/wordpress/wp-settings.php on line 18

Strict Standards: Declaration of Walker_Page::start_lvl() should be compatible with Walker::start_lvl(&$output) in /home/huffmanc/www/milankie/wordpress/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_Page::end_lvl() should be compatible with Walker::end_lvl(&$output) in /home/huffmanc/www/milankie/wordpress/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_Page::start_el() should be compatible with Walker::start_el(&$output) in /home/huffmanc/www/milankie/wordpress/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_Page::end_el() should be compatible with Walker::end_el(&$output) in /home/huffmanc/www/milankie/wordpress/wp-includes/classes.php on line 1199

Strict Standards: Declaration of Walker_PageDropdown::start_el() should be compatible with Walker::start_el(&$output) in /home/huffmanc/www/milankie/wordpress/wp-includes/classes.php on line 1244

Strict Standards: Declaration of Walker_Category::start_lvl() should be compatible with Walker::start_lvl(&$output) in /home/huffmanc/www/milankie/wordpress/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_Category::end_lvl() should be compatible with Walker::end_lvl(&$output) in /home/huffmanc/www/milankie/wordpress/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_Category::start_el() should be compatible with Walker::start_el(&$output) in /home/huffmanc/www/milankie/wordpress/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_Category::end_el() should be compatible with Walker::end_el(&$output) in /home/huffmanc/www/milankie/wordpress/wp-includes/classes.php on line 1391

Strict Standards: Declaration of Walker_CategoryDropdown::start_el() should be compatible with Walker::start_el(&$output) in /home/huffmanc/www/milankie/wordpress/wp-includes/classes.php on line 1442

Strict Standards: Redefining already defined constructor for class wpdb in /home/huffmanc/www/milankie/wordpress/wp-includes/wp-db.php on line 306

Strict Standards: Redefining already defined constructor for class WP_Object_Cache in /home/huffmanc/www/milankie/wordpress/wp-includes/cache.php on line 431

Strict Standards: Declaration of Walker_Comment::start_lvl() should be compatible with Walker::start_lvl(&$output) in /home/huffmanc/www/milankie/wordpress/wp-includes/comment-template.php on line 1266

Strict Standards: Declaration of Walker_Comment::end_lvl() should be compatible with Walker::end_lvl(&$output) in /home/huffmanc/www/milankie/wordpress/wp-includes/comment-template.php on line 1266

Strict Standards: Declaration of Walker_Comment::start_el() should be compatible with Walker::start_el(&$output) in /home/huffmanc/www/milankie/wordpress/wp-includes/comment-template.php on line 1266

Strict Standards: Declaration of Walker_Comment::end_el() should be compatible with Walker::end_el(&$output) in /home/huffmanc/www/milankie/wordpress/wp-includes/comment-template.php on line 1266

Strict Standards: Redefining already defined constructor for class WP_Dependencies in /home/huffmanc/www/milankie/wordpress/wp-includes/class.wp-dependencies.php on line 31

Strict Standards: Redefining already defined constructor for class WP_Http in /home/huffmanc/www/milankie/wordpress/wp-includes/http.php on line 61
Femion » Playing around with Processing

Playing around with Processing

June 30th, 2008

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 in Science |

Comments are closed.

Categories

Meta

Latest Tweet

Popular Tags