slint/examples/dial
Tasuku Suzuki 95d29e9b90
dial example: Restrict angle to the defined range and refine angle calculation (#7181)
- Enforce that the angle stays within the specified start and end angles.
- Transition from using the initial touch angle as a reference to using the previous angle.
2024-12-20 19:39:28 +02:00
..
images dial example: move the files one directory down 2024-09-14 18:37:17 +02:00
dial.slint dial example: Restrict angle to the defined range and refine angle calculation (#7181) 2024-12-20 19:39:28 +02:00
README.md dial example: Restrict angle to the defined range and refine angle calculation (#7181) 2024-12-20 19:39:28 +02:00

Dial Demo Video

Slint dial example

Dial example. Uses Math.atan2 to calculate the angle and let the user rotate a dial.

Online Preview Online code editor

Planned changes

  • Update the graphics slightly. They are 10 years old and would benefit from a small polish.