-- Programming, part 1. We'll be developing a sort of functional image
-- library together. This file is made up of explanations (like this)
-- and some prepared code. Some definitions you'll have to fill in
-- yourself, just like in the previous exercise sets.

-- We'll use the JuicyPixels library to generate images. The library
-- exposes the Codec.Picture module that has everything we need.
import Codec.Picture

-- Let's start by defining Colors and Pictures.

-- A Color is just three numbers: the red, green and blue components.
-- We use Ints for convenience even though the valid range is only