lmccart/p5.js — pull request #359 by GarethLewin (2014-09-09 00:00:41+00:00)
Title: Handle resize events and allow canvas resizing

(Note I made this diff against master because it appears to be way ahead of development)

* Added windowResized callback
* Made the createCanvas keep an id around so we can find user created canvases later
* Changed createCanvas to resize the graphics object if it already exists
* Added a resizeCanvas method
* Added resize to the p5.Graphics object
* (Minor) My editor stripped whitespace on some lines. It was only a small subset so I believe your standard is to strip them so I left it in.