Friday, September 7, 2007

ICM - Assignment 1: Circle Creator

I wrote up a little applet in Processing which simply creates circles of varying sizes at pseudo-random coordinates within a bounding box.

For this assignment, I wanted to use the time I had to write up a couple of class objects I knew that I could reuse later on in this class (and just in general) - in particular a general use button and a border frame. Clicking the button signals a callback of sorts to the main circle drawing function - pretty straight forward, although not being able to pass a function as an argument to another function makes it less flexible currently than I'd like.


































This browser does not have a Java Plug-in.



Get the latest Java Plug-in here.









Handle Events:
Mouse click (within viewport box): erase viewport
Key 'r': Red scale
Key 'g': Green scale
Key 'b': Blue scale

Source code: circle_creator

Built with Processing

2 comments:

'stee said...

yowza¡ that is cool!

Anonymous said...

Hello,

When ever I surf on web I come to this website[url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips].[/url]Plenty of useful information on will-at-itp.blogspot.com. Do you pay attention towards your health?. Here is a fact for you. Recent Scientific Research indicates that almost 70% of all United States adults are either obese or overweight[url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips].[/url] Hence if you're one of these individuals, you're not alone. Infact many among us need to lose 10 to 20 lbs once in a while to get sexy and perfect six pack abs. Now the question is how you are planning to have quick weight loss? You can easily lose with with little effort. Some improvement in of daily activity can help us in losing weight quickly.

About me: I am blogger of [url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips]Quick weight loss tips[/url]. I am also mentor who can help you lose weight quickly. If you do not want to go under hard training program than you may also try [url=http://www.weightrapidloss.com/acai-berry-for-quick-weight-loss]Acai Berry[/url] or [url=http://www.weightrapidloss.com/colon-cleanse-for-weight-loss]Colon Cleansing[/url] for quick weight loss.