Lesson 13: Painting a picture
Outline:
- Nested
for
loops- tracing a nested loop
- Exercise 1
- Recap Lesson 12: RGB colors and
Image
objects- lesson 12 classwork, question #2
- Image processing
- getting a pixel’s color with
image.getPixel
- creating a grayscale image: Exercise 4
- getting a pixel’s color with
Explore after class:
- More image processing exercises
- creating a random image with
image.setPixel
: Exercise 2 - getting a pixel’s color with
image.getPixel
: Exercise 3
- creating a random image with
- Mixing
for
andwhile
Want more practice?
Reading assignment (to be completed by the next class):
- Zelle sections 4.8.4-4.8.5 (pp. 120-121)