Coder Social home page Coder Social logo

Comments (4)

ting-ms avatar ting-ms commented on May 30, 2024

Please make sure the property "Needle Xcor" and "Needle Ycor" are set properly.
circular_gauge_properties

"Needle Xcor" is the distance from the left of the needle image to the center of rotation of the gauge needle.
"Needle Ycor" is the distance from the top of the needle image to the center of rotation of the gauge needle.
Please reference the documentation about GX_CIRCULAR_GAUGE_INFO.
https://docs.microsoft.com/en-us/azure/rtos/guix/appendix-i#gx_circular_gauge_info

from guix.

WeizhongFan avatar WeizhongFan commented on May 30, 2024

Hi, Ting

Thanks for the quick reply.

I set exactly same params as you, but the shift can still be seen. It's very little shift, looks like just 1 pixel. But we're making a smart watch, and we use it for a second needle of a watch face. The second needle keeps rotating, so the shifts is observable by users.
4b8ba24bb18c3fef30df43240edfbd5

f105bc374d57bd1e736168ad2d80255

from guix.

ting-ms avatar ting-ms commented on May 30, 2024

GUIX supports integer numbers only for the Needle Xcor and Ycor. The specified Xcor and Ycor are not exactly the center of the circle(half pixel error). That may cause drifting when rotating. My recommendation is to change the needle image so that the actual coordinates of the circle center are integer numbers.

from guix.

jdeere5220 avatar jdeere5220 commented on May 30, 2024

Hello @WeizhongFan,

Can you make the change suggested and does this fix the issue? I need to know if we can close the issue or if we need to add a task to our backlog to investigate sub-pixel coordinates.

from guix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.