Sunday, June 29, 2014; 3:44:08 PM Eastern
HTML canvas with drawImage
- I'm pulling what little is left of my hair out over this one.
- Here's an example page.
- Here's the source of the page in a gist.
- The question, why doesn't the image scale to exactly fill the canvas?
- Any help would be much appreciated. ;-)
- #### Don Park got the answer
- RT @davewiner it's because canvas element's dimensions are unspecified. add width="800" height="500" to the 'canvas' tag in HTML
- He's right, here's the corrected version of the page.