Comments (5)
Hi. Are you able to draw the line segments without a mask? i.e. start the lines from where the inner mask's edge would be and end the lines where the outer mask's edge would be? If it's too difficult to align the ends of the lines nicely, could you draw something else like a LV_DRAW_TASK_TYPE_ARC
where the mask would have been, on top of the lines?
from lvgl.
What are my options (except maybe waiting for the NXP SDK which is planned to support VG-Lite 4.x)?
See this issue for comments from NXP on this topic.
I draw these lines upon changes in encoder, like a volume control. So I need these lines to be drawm efficiently and fast enough.
What about having an image with the ticks and setting it as the background of an arc. The arc will mask out parts of the image as you adjust it's angles/value. It should be much faster than drawing the ticks one by one.
from lvgl.
What about having an image with the ticks and setting it as the background of an arc. The arc will mask out parts of the image as you adjust it's angles/value. It should be much faster than drawing the ticks one by one.
The problem is that the design should have one color for ON ticks and another for OFF tick. I solved this by drawing a line with a different color on a canvas on top of already drawn lines.
If it's too difficult to align the ends of the lines nicely, could you draw something else like a LV_DRAW_TASK_TYPE_ARC where the mask would have been, on top of the lines?
So, I will have to draw the inner and outer arcs every time I redraw the tick with the different color, correct? It is possible, as long the lines and arcs are drawn by vglite. I will try it.
from lvgl.
Related Issues (20)
- Bar rotates automatically to horizontally if width>heigth HOT 3
- Compilation error using VG-Lite HOT 9
- [NOT A BUG] Label of List can't be centered. HOT 2
- [scale] Be able to configure the part drawing order HOT 2
- LVGL Forum SPAMMER HOT 6
- Object Rotation for Binary Images HOT 6
- Incomplete implementation of lv_canvas_set_px() for indexed color format HOT 5
- The display will not receive the input event like press and release if a new screen is loaded. HOT 5
- Compilation error using PXP HOT 16
- Mosaic HOT 2
- Scrolling does not respect padding of parent. HOT 5
- Automatioc check for broken links in documentation HOT 5
- How to display Thai on the interface HOT 5
- Recoloring in V9 HOT 1
- ESP32 Rotate doesn't work HOT 3
- ESP32-3248S035C with GT911 touch chip, arduino demo compile error HOT 14
- How can LVGL be better used on wayland/ DRM-enabled SoCs?
- have the C++ version image convert tool and font generate tool? HOT 9
- lv_demo_widgets example in windows, get stuck and break! HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lvgl.