I can't get the needles on my gauge to rotate the way I want

What do you want to achieve? I have one 480x480 TFT screen with two gauges for an electric motorcycle I built. I want the needles to rotate from the bulb on the speedometer needle. When I use pivot x and y for the location of the spot on the needle and then attempt to rotate the needle just moves off center and up to the right.

What have you tried so far? I have tried changing the x&y pivot coordinates for the image in both the transform section (the section under flex flow) and in the Style Setting, Transform, pivot x&Y. The needle image is 28 pixels wide by 195 tall, and the pivot point is 14x14 pixels in from either edge.

thanks

Screenshot or video

Others

  • 1.6.0

  • windows11

  • Target hardware:

Simply no Squareline version support gauge or meter . Your idea is possible only in code. Use LVGL docu and examples for meters…

Try using rotation in the Image section, not the one in Transform.
Rotation is in 1/10th of a degree, so 900 = 90 degrees clockwise
Also the pivot needs to be set relative to the image itself, not the background or the whole screen area.
I have a needle that is 270 * 27 px, pivot is at X62/Y13. Outline is where it sits with 0 rotation.