setTransform broken in simulator
-
Running the following canvas code in the simulator does not show a line:
ctx.strokeStyle = "#FFFFFF"; ctx.setTransform(1, 0, 0, 1, 300, 440); ctx.beginPath(); ctx.moveTo(0, 0); ctx.lineTo(0, -500); ctx.stroke();whereas replacing the
setTransform()call with atranslate(300,440)call does give the wanted effect.Double checking the code in a browser does give the expected result.
I did not have the chance yet to test this on a real watch.