slint/examples/dial/README.md
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

825 B

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.