Colormap/heatmap implementation issue

Description

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

ESP32S3

What LVGL version are you using?

V8.3

What do you want to achieve?

Something like colormap or heatmap in MATLAB. I have a 5 inch ESP32S3 touch screen which connects several pressure sensors. What I’d like to do is a colormap which can show different color when sense different air pressure. When low pressure 0psi, it shows green, then all the way change to yellow to finally red. It has a range like 0-20psi to show corresponding color change. Any advice?

What have you tried so far?

Nothing yet.

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

If possible, add screenshots and/or videos about the current state.