Invert Earth's rotation in solar_system example

This commit is contained in:
Héctor Ramón Jiménez 2024-08-04 14:38:42 +02:00
parent 2b1b9c984a
commit cc076903dd
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -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);