I want to draw/fill a circle on a container and draw a rectangular (with transparent filled ) .
How to create them ?
Thank you.
I want to draw/fill a circle on a container and draw a rectangular (with transparent filled ) .
How to create them ?
Thank you.
You can use lv_canvas_draw_rect
and customize the properties of the style. For example, to draw a circle you would set the border radius to LV_RADIUS_CIRCLE
(or something along those lines).
So do you want to make a “hole” into a rectangle?
Thank you.
Yes, I want o make a hole or circle frame in a transparent filled rectangular.
But when create rectangular , the body style can’t set to transparent color?
How to set style of the rectangular’s body to transparent color?
I recommend that you read the documentation on styles.
style.body.opa = LV_OPA_TRANSP;