georgealways/gee — Issue #7: strokestyle, linewidth...
Author: streikbrecher
Created: 2011-11-13 16:23:46+00:00
State: open

Hi,
i'm just starting to mess around with the canvas, so maybe i'm missing sth. basic..
Why is this not working?

g.mousedrag = function() {
g.ctx.beginPath();
g.ctx.moveTo( g.pmouseX, g.pmouseY );
g.ctx.lineTo( g.mouseX, g.mouseY );

g.cxt.strokeStyle = "#0000ff";	//<-doensn't work!
g.cxt.lineWidth = 2;	//<-doensn't work!

g.ctx.stroke();
};

Are strokes not fully supported?