summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-08-04 14:38:42 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-08-04 14:38:42 +0200
commitcc076903dda18f79dbd82238f7a8216bab8c679d (patch)
tree994f049309aa33b04ab2f723bb8cb1f700408f7e /examples
parent2b1b9c984ac1b290c351d0a9edc7bca69f8bd526 (diff)
downloadiced-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.rs2
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);