CONDITIONAL PIXEL CHANGES
SIMPLE EDGE DETECTION: CONDITIONALS WITH TWO OPTIONS
SEPIA-TONED AND POSTERIZED PICTURES: USING MULTIPLE CONDITIONALS TO CHOOSE THE COLOR
COMBINING PIXELS: BLURRING
The media learning goals for this chapter are:
To replace one color with another in a picture.
To do simple edge detection.
To replace several colors in a picture: sepia-toned.
To replace a range of colors with one color: posterizing.
To average nearby pixels when scaling up for a smoother result: blur.
To replace the background in a picture.
The computer science goals for this chapter are:
To conditionally execute a statement or block of statements using if.
To use a conditional with two possible results: if and else.
To use a conditional with greater than two possible results: if, else if, and else.
To introduce the not operator.
To combine boolean expressions with and and or.