Impressed with Processing

I have just started using Processing just for the fun of it. And the ease with which one can create graphics with Processing is evident straight out of my second program. The program is very simple:

void setup()
{
  size(120, 480);
  smooth();
}

void draw()
{
  if (mousePressed) {
    ellipse(mouseX, mouseY, 40, 40);
  } else {
    ellipse(mouseX, mouseY, 80, 40);
  }
}

As the mouse moves, one can draw an ellipse or a circle (with a click of it). The code looks very clear and it is very simple – yet it gives a rich experience when executed. I am loving it. 🙂 Next thing, I will persuade my wife to indulge herself in Processing.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s