diff options
author | 2024-08-04 14:38:42 +0200 | |
---|---|---|
committer | 2024-08-04 14:38:42 +0200 | |
commit | cc076903dda18f79dbd82238f7a8216bab8c679d (patch) | |
tree | 994f049309aa33b04ab2f723bb8cb1f700408f7e /examples | |
parent | 2b1b9c984ac1b290c351d0a9edc7bca69f8bd526 (diff) | |
download | iced-cc076903dda18f79dbd82238f7a8216bab8c679d.tar.gz iced-cc076903dda18f79dbd82238f7a8216bab8c679d.tar.bz2 iced-cc076903dda18f79dbd82238f7a8216bab8c679d.zip |
Invert Earth's rotation in `solar_system` example
Diffstat (limited to 'examples')
-rw-r--r-- | examples/solar_system/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/solar_system/src/main.rs b/examples/solar_system/src/main.rs index 9da9fd34..1e74f2bd 100644 --- a/examples/solar_system/src/main.rs +++ b/examples/solar_system/src/main.rs @@ -187,7 +187,7 @@ impl<Message> canvas::Program<Message> 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); |