PlayMyCode / SkyBrush

pure-JS HTML5 embeddable painting application
http://www.studiofortress.com/skybrush
Other
60 stars 17 forks source link

remove `canvas.ctx = canvas.getContext('2d')` #17

Open joe-askattest opened 7 years ago

joe-askattest commented 7 years ago

Currently the 2D context is created and then stored on the canvas object. This needs to go.

Wrap the canvas in an object or just move the ctx creation out.