I simply want to draw two line segments, the first in blue, the second in red:
context.moveTo(0,0); context.lineTo(myCanvasWidth/2, myCanvasHeight/2);
context.strokeStyle = "blue";
context.strokeStyle = "red";
The problem is that the first blue line segment is gone over again - in red.