Suunto app Forum Suunto Community Forum
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    setTransform broken in simulator

    Scheduled Pinned Locked Moved Suunto Plus Development
    2 Posts 2 Posters 233 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • U Offline
      Unpaired8373
      last edited by

      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 a translate(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.

      Nikolai SimonovN 1 Reply Last reply Reply Quote 0
      • Nikolai SimonovN Offline
        Nikolai Simonov @Unpaired8373
        last edited by

        @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.

        Suunto Race 2 Ti
        Suunto Race
        Suunto 9 Baro

        Suunto Aqua
        Suunto Wings

        1 Reply Last reply Reply Quote 2

        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
        • First post
          Last post

        Suunto Terms | Privacy Policy