Lesson 13: Painting a picture

Outline:

  1. Nested for loops
  2. Recap Lesson 12: RGB colors and Image objects
    • lesson 12 classwork, question #2
  3. Image processing
    • getting a pixel’s color with image.getPixel
    • creating a grayscale image: Exercise 4

Explore after class:

  1. More image processing exercises
    • creating a random image with image.setPixel: Exercise 2
    • getting a pixel’s color with image.getPixel: Exercise 3
  2. Mixing for and while

Want more practice?

  1. Runestone:

Reading assignment (to be completed by the next class):

  • Zelle sections 4.8.4-4.8.5 (pp. 120-121)