A gradient from right to left

Important: posts that do not use this template will be ignored or closed.

Before posting

  • Get familiar with Markdown to format and structure your post
  • Be sure to update lvgl from the latest version from the master branch.
  • Be sure you have checked the relevant part of the documentation. We will not respond in detail to posts where you haven’t read the relevant documentation.
  • If applicable use the Simulator to eliminate hardware related issues.

Delete this section if you read and applied the mentioned points.


I want to implement a right to left gradient,like this:企业微信截图_20210223173424|405x41

What LVGL version are you using?


Just use a left to right one and swap the colours.

Thanks a lot.