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.
-
@Unpaired8373 on real watch canvas is really limited and can throw a few surprisesat you. I strongly recommend testing everything on real watch. Unfortunatelly simulator lets you test app in really rough way.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better đź’—
Register Login