Transform+your+Math+or+Science+Class+with+Coding

You will need to download the appropriate version of Processing for your device. It would be great if you could do this before the session.

-- For PC's, go to: [] -- For iPads, download the Processing app: Processing for iOS (Javascript)

Here is the code you will use during the workshop:

code // beginning of Simple_Kinematics

float dt, t;  // Introduces variables that are public in the program  (line 1)

void setup { size(600, 600);    // sets the size of the screen (line 2) t = 0;   // initializes time to zero (line 3) dt = 0.05;     // sets time that increments each redraw (line 4) }

void draw { background(100, 100, 255);   // sets background color (line 5) float X = 300;    // X-position of rectangle (line 6) float Y = 400;     //  Y-position of rectangle (line 7) fill(255, 255, 0);   // sets the color of the rectangle (line 8) rect(X, Y, 60, 30);  //draws a rectangle (line 9) t = t+ dt;         // Increments the time by dt every redraw (line 10) }

// end of Simple_Kinematics

code