Conditionals

Here is an example of conditionals in Processing. Ive asked for a circle to be drawn if the mouse is positioned in the first 100 pixels horizontally, and a rectangle to be drawn if the mouse is in the right half of the screen. I’ve copied code from the Processing site to export the sketch as a movie, but I can’t get it to work properly. Needs more work….

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