In this chapter, we will return to programs that display images. We will begin by showing simple color patterns such as national flags. Then we will see how to load image files such as photographs. Finally, we will write code that does simple image manipulations, such as flipping them in the vertical axis.
14.1 Modeling Color
Computer screens display images by producing huge numbers of tiny colored dots called pixels. (The word “pixels” is short for “picture cells.”) On many modern screens, these dots are too small to ...