Week 2: Data & Logic

Agenda:

Weekly Overview
Assignment Review
Final Project Overview
Variables
Arithmetic
Conditional Statements
Iteration
Drawing with Conditionals
Assignment 2.0: Tiles
Assignment 2.1: Drawing App
Final Project 0.0: Precedents

Overview:

Today we’ll cover the following:

Our in-class Exercises will require you to show that you understand how to write and modify nested loops. We’ll then start building a drawing app!

Resources:

Shiffman - 2.1 Variables in p5.js - p5.js
Shiffman - 2.2 Variables in p5.js (make your own) - p5.js
Shiffman - 3.1 Introduction to Conditional Statements - p5.js
Shiffman - 3.2 The Bouncing Ball - p5.js
Shiffman - 3.3 Else and Else if, AND and OR - p5.js
Shiffman - 3.4 Boolean Variables - p5.js
Shiffman - 4.1 while and for Loops - p5.js
Shiffman - 4.2 Nested Loops - p5.js
p5 Examples: Conditionals
p5 Examples: If/else Statements
p5 Examples: Logical Operators
p5 Examples: Iteration
p5 Examples: Embedded Iteration