Lesson 15: A thousand words
Outline:
- Questions?
- Color models
- how humans see color
- how computers output color
- practice with RGB colors: Exercise 1
- Working with images
Imageobjects ingraphics.py- getting a pixel’s color with
image.getPixel: Exercise 2
- Nested
forloops- tracing a nested loop
- Exercise 3
Explore after class:
- Creating an image made of random colors
- set a pixel’s color:
image.setPixel(see documentation pg. 7 for simple example) - Exercise 4
- set a pixel’s color:
- Additive versus subtractive color
What’s next
Upcoming events/assessments:
- Your first Project Code deliverable is due next Thursday at 10pm
What you should do now:
- The readings (see below)
- Submit Assignment 5 by 10pm today if you’re using a token
- Keep working on your project, incrementally adding functionality
- Rest and enjoy Mid-Term Break!
Reading assignment (to be completed by the next class):
- Zelle sections 4.7.4–4.7.5 (pp. 120–121)