Visual data structures

We will start by building some useful types to manipulate pixel information.

❎ Start by creating a public image module in your project. The types in this section will be created in this module.

We will now build two data structures

  • Color will represent an individual RGB pixel
  • Image will represent a whole 8×8 image made of pixels

that we will later reexport from the library top-level module. Do not reexport anything yet.