Skip to content

Tools homework September 19

12/09/2011

During class we discussed the for loop.

We also experimented with the if statement (the bouncing wall)

You can find reference to the if and the for:

http://processing.org/reference/if.html

http://processing.org/reference/for.html

We looked at the use of the text function.

http://processing.org/reference/text_.html

This was the resulting sketch:

http://www.contrechoc.com/crosslab/doubleForLoop.zip

The challenge for next week is to find out how an image is loaded ( form the examples: basics image loadDisplayImage).

(see also the tutorials to study.)

Study this example carefully. Load another image (using the folder data in the folder of the sketch you find by CMD K)

Now use your knowledge to replace the “ichi” text in the double for loop sketch above by an image, which is then displayed 25 times, or 36 times.

Tutorials to study:

http://processing.org/learning/color/

http://processing.org/learning/pixels/

http://processing.org/learning/2darray/ (this one might prove difficult!)

The 2D array will be used to load a sequence of images next Monday. This opens the possibility for making animations!

For Robert and Matthijs, you can do this homework trying it in OO language?

Advertisements

From → Assignments

Leave a Comment

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

%d bloggers like this: