How to implement a gradient text color in LVGL_v8.1 or later?

Important: unclear posts may not receive useful answers.

Description

Hello, I have a question that I need to ask:
the UI need to creat a label with gradient color, but the LVGL version i used is v8.1.1, I looked up the description of the relevant issue in lvgl official documentation, only find this one: “https://docs.lvgl.io/latest/en/html/widgets/objmask.html”, lv_objmask was used to achieve the gradient text color. but. in v8.1.1, there is no lv_objmask . So, Please, how to implement it in the latest version

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

What LVGL version are you using?

v8.1.1

What do you want to achieve?

implement a gradient text color

What have you tried so far?

pannel with transparency and gradients, but no works

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:

/*You code here*/

Screenshot and/or video

hope to achieve the following effect
image

Hi, did you manage to solve this? I’m also looking for something similar. This forum doesn’t seem to have much activity though.

As far as I can see, there is a lv_objmask for lvgl 8

Maybe this link might help you: lvgl 8 objmask