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

        Suunto Terms | Privacy Policy