Arc angle resolution too low for partial arcs (limited to 1° steps)
Introduce the problem
Description:
According to the documentation, the arc widget in LVGL uses angle values in the range of 0–360 degrees, with integer precision:
“The angle values should be in the range [0..360].”
This effectively limits the resolution to 1° steps.
For full-circle arcs or large angle ranges, this is sufficient. However, when using only a small segment of the arc (for example 0–30°) and scaling it visually, the resolution becomes too low. With only ~31 discrete points available, the arc appears visibly segmented and lacks smoothness.
Expected behavior: Higher angular resolution for arcs, especially when using small angle ranges.
Suggested improvements:
Allow sub-degree precision (e.g., 0.1° steps or similar) for: lv_arc_set_bg_angles lv_arc_set_bg_start_angle lv_arc_set_bg_end_angle
Alternatively or additionally, introduce a configurable resolution setting, for example:
lv_arc_set_resolution(arc, resolution)
Where resolution defines the number of interpolation steps or angular precision used when rendering the arc.
This would significantly improve rendering quality for partial arcs and high-resolution displays.
Question: Is there a reason the arc angles are restricted to integer degrees? Would it be feasible to extend the API to support finer granularity or configurable resolution?
Proposal
No response
Source: lvgl/lvgl