Draw Sector in gauge?

In my gauge when the needle starts moving I want it to show the passed area like from it’s start point (angle) to its current one so I thought of drawing many lines according to every angle value in the range but it seemed like overloading the serial when start angle is far from current so it will send very much commands so is there any way to draw like boundaries and fill or draw triangle can solve the problem.
Thanks in advance.

1 Like

I am looking for a solution to the same problem

perhaps you can play with setlayer and you create a circle + squares

imagine you want something that goes from 0 to 180:

  1. make a circle
  2. make a rectangle to hide the botton half
  3. make a rectangle to hide the unwanted rest.

in this image, you just have to move (or rotate) the blue rectangle.