Simple drawing of shapes

How do I draw simple shapes such as circles, arcs, lines and rectangles?

I read this:

But it only shows how to use as a mask. I just want to draw the shapes simply.


You can either use an lv_canvas object or change the design function of the object.

In v8 it’s much simpler to add a custom drawing to an object. Just add a new event and draw whatever you need in LV_EVENT_DRAW_MAIN. Read more here