Drawing and filling a virtual bottle #1285
-
Hi, Right now, I created a function in 3 parts for filling the body, the shoulder and the neck using drawFastHLine. It is a little complicated. I saw that with LVGL we can use masking function for this kind of drawing. You draw a rectangle and yo mask it with a bottle shape. I could also draw a rectangle and mask it with 2 white rectangles and 2 white triangles. But there is no drawFastfillTriangle Do you have any idea to improve and simplify my drawing ? Thanks ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
OK I manage to do it using Sprite and transparent colour. |
Beta Was this translation helpful? Give feedback.
OK I manage to do it using Sprite and transparent colour.