p5js/logic-gates - Determine proper canvas size
p5js/logic-gates - Determine proper canvas size

Using the approach in a recent sketch, this chooses the correct margin ...

* If viewed at .html, reason that it is in local development, and don't anticipate a page margin.
* Otherwise, treat it as being rendered at brianhonohan.com/sketchbook/ with the main navigation bar (37 px tall).

Ultimately, this isn't too dynamic (if site layout changes, this logic wont' be valid), but its good enough for now.

brianhonohan/sketchbook,brianhonohan/sketchbook,brianhonohan/sketchbook