Color gradient on arc

Hey, newbie here.
at first thank guys for making such easy to use library.
so am working on a personal project, just trying to learn lvgl stuff. I am using ESP-32 and 3.5 inch 320x480 tft screen to display sensor data. everything is working great except displays lags too much, other than that i am happy with results. there is one question on my mind,
I would like a gradient on arc .


something like this, but keep in mind that i am using gauge for my project.
here is how my display looks like.
So color on left gauge arc should change from green to yellow to red. and i would also like to set text color inside the gauge accordingly.

As far as I recall, v8 does not support gradient on the arc.
What you can do is use an image of an arc with a gradient and feed it to the arc:

@embeddedt @kisvegabor is it possible to use an arc image on the LV_METER arc?

There is not API for that at this moment, however I agree that it’d be great to make possible setting an arc bg image. I’ll look into it while updating the API for v9.

Until that you can easily hack it by adding an image here

like

    arc_dsc.img_src = &my_img;

Another option is to keep the meter scale and ticks, but not create the arc on the gauge.
Create an arc object above the meter with the same range/rotation etc.
I’ve done this to create a gauge with a floating needle and an arc that follows the needle.