diff --git a/Spiral-Topography.md b/Spiral-Topography.md index 45915a2..01716a8 100644 --- a/Spiral-Topography.md +++ b/Spiral-Topography.md @@ -27,7 +27,7 @@ uint16_t Map(int16_t ring, int16_t pixel) const ### Mapping Implementation To implement the map method, the ring argument and pixel must be translated into the final index value. The first part is to calculate the start of the ring; this can be accomplished by a lookup table using the data above. Then we just need to add the pixel to offset to the correct one. ``` -const uint16_t Rings[] = {0, 1, 7, 19, 35, 59}; +const uint16_t Rings[] = {0, 1, 7, 19, 35, 59, 119}; uint16_t Map(int16_t ring, int16_t pixel) const { uint16_t index = Rings[ring] + pixel;