From bccb1be2d446fe1e916069da7284eace4813e249 Mon Sep 17 00:00:00 2001 From: "0m.ax" Date: Sat, 19 Jul 2025 03:04:02 +0200 Subject: [PATCH] color --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 687ae4e..ae4bf04 100644 --- a/src/main.rs +++ b/src/main.rs @@ -190,7 +190,7 @@ impl Drawable for Circle { /// Helper method to draw the 8 symmetric points for a given (x, y) offset. fn draw_and_move(&mut self, display: &mut Display) { let hsv_color = color::Hsv { - h: self.radius%360, + h: (self.radius%360).try_into().unwrap(), s: 1.0, v: 1.0, };