A helpful way to debug HTML canvas while doing a lot of translations, transformations, and so on.
      context.fillRect(0, 0, 2, 2);
This line prints a tiny rectangle at the point of zero coordinates. 
Random programming things I'd want to remember
No comments:
Post a Comment