From d9a732994f0ac426fabcf189b4ec1014f9af96ab Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 16 Jan 2025 12:17:28 +0000 Subject: Simplify tick drawing logic in `clock` example --- examples/clock/src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'examples/clock/src/main.rs') diff --git a/examples/clock/src/main.rs b/examples/clock/src/main.rs index 0aa54d3a..7d11a3b5 100644 --- a/examples/clock/src/main.rs +++ b/examples/clock/src/main.rs @@ -182,9 +182,7 @@ impl canvas::Program for Clock { // Draw ticks for tick in 0..60 { - let angle = Radians::from(hand_rotation(tick, 60)) - - Radians::from(Degrees(90.0)); - + let angle = hand_rotation(tick, 60); let width = if tick % 5 == 0 { 3.0 } else { 1.0 }; frame.with_save(|frame| { -- cgit