
Untitled
By: a guest on
May 21st, 2012 | syntax:
None | size: 0.45 KB | hits: 12 | expires: Never
Why the rect created in the canvas doesn't follow the width n height stated?
this.canvas = {
innerElement: TBE.CreateRectCanvasElement (Element.config.displayWidth, Element.config.displayHeight)
};
this.canvas.innerElement.style.border = '1px solid black';
this.innerElementCtx = this.canvas.innerElement.getContext("2d");
this.innerElementCtx.fillStyle = '#3ac6e5';
this.innerElementCtx.fillRect(50, 50, 100, 100);