From cc076903dda18f79dbd82238f7a8216bab8c679d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Sun, 4 Aug 2024 14:38:42 +0200 Subject: [PATCH] Invert Earth's rotation in `solar_system` example --- examples/solar_system/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/solar_system/src/main.rs b/examples/solar_system/src/main.rs index 9da9fd3429..1e74f2bd47 100644 --- a/examples/solar_system/src/main.rs +++ b/examples/solar_system/src/main.rs @@ -187,7 +187,7 @@ impl canvas::Program for State { frame.draw_image( Rectangle::with_radius(Self::EARTH_RADIUS), - canvas::Image::new(&self.earth).rotation(rotation * 20.0), + canvas::Image::new(&self.earth).rotation(-rotation * 20.0), ); frame.rotate(rotation * 10.0);