120
rated 0 times
[
126]
[
6]
/ answers: 1 / hits: 34694
/ 11 Years ago, mon, may 13, 2013, 12:00:00
I'm building a few libraries for canvas graphing in javascript, and I was wondering if there was any way to get the size of the canvas from it's 2D context. I was looking for something like this.
var size=ctx.size;
scale=size/100;
There are multiple canvas elements here, so I can't do canvas.width.
Thanks
More From » canvas