Replies: 2 comments
-
Above my current pay grade here, but I'm guessing that you'd use this for the drawing part: https://docs.lvgl.io/master/details/main-modules/draw/draw_api.html (translated into uPy, of course) |
Beta Was this translation helpful? Give feedback.
-
If you want to render primitives like lines, rectangles, points, etc.. you will want to use the canvas widget along with the draw functions. LVGL is not really designed to be the most user friendly when it comes to custom rendered primitives. There are a lot of steps involved in the process and this is mostly because of the ability to draw in layers much like a paint program on a desktop PC. It supports alpha channels between the layers to blend the colors together properly. Things of that nature. To provide that kind of functionality It makes using the drawing functions more complex than most other frameworks. This is done using LVGL with CPython on a desktop PC. It's just to show that doing custom rendering is possible. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to make several games with LVGL and I am wondering how you can just draw simple shapes (Like lines or filled rects) or images onto the screen. I am also wondering how to disable anti-aliasing. Does anyone know?
Beta Was this translation helpful? Give feedback.
All reactions