Lesson 13: Painting a picture
Outline:
- Nested
forloops- tracing a nested loop
- Exercise 1
- Recap Lesson 12: RGB colors and
Imageobjects- 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
forandwhile
Want more practice?
Reading assignment (to be completed by the next class):
- Zelle sections 4.8.4-4.8.5 (pp. 120-121)