Comments (7)
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.
Can you send an image about how the result should look like?
from lvgl.
from lvgl.
You can try this:
lv_obj_set_style_arc_image_src(arc, &img, LV_PART_MAIN);
lv_obj_set_style_arc_opa(arc, LV_OPA_50, LV_PART_MAIN);
lv_obj_set_style_arc_image_src(arc, &img, LV_PART_INDICATOR);
from lvgl.
We need some feedback on this issue.
Now we mark this as "stale" because there was no activity here for 14 days.
Remove the "stale" label or comment else this will be closed in 7 days.
from lvgl.
Related Issues (20)
- 8.4/9.1 Hardware based display rotation input devices HOT 6
- LV_COLOR_16_SWAP removal and performance HOT 2
- About the Release Date of New Versions HOT 2
- Slider Indicator Bigger Image Replacement on Press Event HOT 1
- "Does the lv_fs_dir_open function support opening directories with Chinese paths?" HOT 2
- ESP32 SPIFFS HOT 4
- animation LV_ANIM_REPEAT_INFINITE not works? HOT 1
- Overflow focus not handled correctly on full_refresh=0 HOT 1
- FPS and Fragmentation HOT 9
- How to use evdev in v9? HOT 7
- Adding border to different sides HOT 2
- Lottile on web pages https://docs.lvgl.io/master/widgets/lottie.html ,there is no button to view the C code HOT 1
- Slider only changes value when moved HOT 3
- Tiny TTF lib: lv_tiny_ttf_set_size() should be removed or clear the cache HOT 14
- Input device driver callback is not working HOT 1
- X11 driver not correctly working (or I am doing it wrong) HOT 4
- Funky code in the indev pointer driver for handling rotation HOT 9
- Online Font Converter fonts not displaying correctly HOT 14
- simple container of radius one shows mixed color HOT 4
- Can lvgl support copying and pasting text using the mouse on Windows? HOT 2
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.