General

Can I have more than one partner?

No. You may work with only one partner on labs unless otherwise noted.

How does the PNG coordinate system work?

The upper left corner is (0, 0). A PNG with width == 3, height == 4 has coordinates:

+--------+--------+--------+
|        |        |        |
| (0, 0) | (1, 0) | (2, 0) |
|        |        |        |
+--------+--------+--------+
|        |        |        |
| (0, 1) | (1, 1) | (2, 1) |
|        |        |        |
+--------+--------+--------+
|        |        |        |
| (0, 2) | (1, 2) | (2, 2) |
|        |        |        |
+--------+--------+--------+
|        |        |        |
| (0, 3) | (1, 3) | (2, 3) |
|        |        |        |
+--------+--------+--------+

How do you run ASAN/Valgrind on a Mac?

Unfortunately, Valgrind doesn’t support newer Macs. For ASAN, Apple doesn’t provide a version of Clang that is ASAN-enabled. You can try compiling it yourself, but how to do that is out of the scope of this page.