Alter the length of a needle

What MCU/Processor/Board and compiler are you using?

ESP32

What LVGL version are you using?

8

What do you want to achieve?

alter the length of the needle on both ends

What have you tried so far?

I know that I can shorten the length of the needle at the outer end (by the tick marks ) with r_mod:

lv_meter_add_needle_line( meter, scale, 8, lv_color_hex(0x000000), -50 );

This shortens the tip of the needle by 50px. But can I shorten the other end of the needle towards the centerpoint of the meter? I know this can be achieved by creating an image with transparency but that’s a lot of overhead to redraw, particularly if there are 4 or 5 needles that need to be redrawn fast…

Vector is significantly faster but it seems like the needles are always originating from the center of the meter and there’s no way to shorten them…

I suppose a hack would be to overlay a round shape atop the screen to cover the part of the needle that should be transparent but that seems sloppy

Thanks in advance.