Exam 1 Topics
CS145: Images and Imagination,
Spring 2010
Topics
Understand the following:
- Window coordinate system
- Drawing primitive shapes - lines, ellipses, rectangles
- What is an algorithm.
- Execution sequence in Processing - in what order are commands executed. This includes
the order when using functions, loops, and conditional statements.
- How is color represented. RGB vs HSB, grayscale. Why 0-255?
- Variables
- Data types - int, float, boolean, string, etc.
- Declaring and naming a variable.
- Setting the value of a variable with an assignment statement.
- Arithmetic with variables.
- Scope of variables.
- Conditionals
- If statements, if-else statements
- Boolean expressions, <, >, <=, >=, ==
- Combining boolean expressions with AND, OR, NOT
- Loops
- Syntax
- Controlling the loop - start value, stopping condition, Looping up - looping down, ...
- Functions
- Syntax
- Special Processing functions: setup() and draw()
- How functions affect scope of variables.
- Function parameters.
- How to "call" a function.
- Using random numbers.
- Transformations
- Translation, scale, rotate
- The Matrix stack
- Controlling the pivot (fixed point)
- Commutivity of transformations - when does the order matter and does it not.
- Hierarchical structure for controlled animation.
Readings in Text
- pp. 17-41: Introduction to Processing
- pp. 85-92: Color
- pp. 37-41: Variables
- pp. 43-50: How to do basic arithmetic in Processing (adding, subtracting, etc)
- pp. 51-60: Conditionals - making decisions
- pp. 61-68: Repetition/looping
- pp. 127-130: Random Numbers
- pp. 51-60: Making Choices - Conditional expressions
- pp. 173-192: Animation and Functions
- pp. 133-134: The translation transformation and the matrix stack.
- pp. 197-201: Function Parameters
- pp. 137-143: Rotate and Scale
[top] [Schedule]
[Home]