Skip to content

Instantly share code, notes, and snippets.

@compiler-errors
Created August 27, 2015 23:45
Show Gist options
  • Save compiler-errors/c0a400af68768f1baaf3 to your computer and use it in GitHub Desktop.
Save compiler-errors/c0a400af68768f1baaf3 to your computer and use it in GitHub Desktop.
The bounding square around the grid: GRect(9, 21, 126, 126)
The points on the grid are GPoint(18 + 9 * i, 30 + 9 * j)
where i = (0, 1, 2... 12) denoting the minutes / 5.
where j = (0, 1, 2... 12) denoting the hours % 12.
Font: FONT_FORCED_SQUARE_10
The (x, y) position of any H:M combination is
i = H + M / 60
j = M
the point would be = GPoint(18 + 9 * i, 30 + 9 * j)
Hope you got everything to make it work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment