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, };