ITP RESIDENTS

The Residents

Resources

Links

Week 1 ICM Help Session

Lia

GENERAL REFERENCES 

tutorial in processing.org

ICM Git Repository – Examples from Class and More! – Great place to get started with HWs. – Click the “ZIP” file to download the whole enchilada.

Processing Reference – If you have a question that starts with, “How do I…?” check here first.

Instructions for uploading your homework to the web.

WHERE TO FIND CODE EXAMPLES WITHIN THE PROCESSING APP

Go to the menu File>>Examples…>>Basics.

DRAWING CURVES, ARCS

There were A LOT of questions about drawing curves

curves in processing.org (arcs, splines, bezier)
drawing in processing (coordinate system, simple shapes)
working with color

Anatomy of a Circle

Radians and Degrees, scanned from Getting Started With Processing (Reas, Fry 2010)

The Unit Circle

If you are more comfortable working with degrees, you can convert from Degrees to Radians with the radians() function. So instead of saying

arc(50, 15, 80, 80, HALF_PI, PI);

you might write:

arc(50, 75, 80, 80, radians (90), radians (180));

and it would be the same thing.

UPDATE (9/18) Dan Shiffman posted an example with different usages of arc() here.

 

PRINTING YOUR MOUSE COORDINATES TO THE CONSOLE

Drawing in Processing can be tedious if you always have to estimate where your coordinates should be. Wouldn’t it be great if you could use the coordinates of your mouse position to tell you where you need to draw?

Type this within the DRAW loop:

println (“X: ” + mouseX + ” Y: ” + mouseY);

now move your mouse pointer around the sketch and check your console for the coordinates!