Monday, January 16, 2017

Processing Day 2

Day 2  

//If you missed today you should get a copy of the Processing worksheet and the Processing presentation.
Conditional statements - Boolean logic
    1. George Booole
    2. && Logical AND

A
B
A · B
0
0
0
0
1
0
1
0
0
1
1
1


  1. for Loop
    1. for (init; test; update) {
         Statements
                 }


    1. for (int i=20; i < 80; i +=5) {
                     line (20, i, 80, i+15);
                 }


                   


  1. Assignment:
    1. Write a for loop inside void draw( ) { that creates several lines, circles, squares, etc.
    2. Use the keyPressed ‘s’ function to save your work.
    3. Attach your file to Google Classroom.