Skip to content

Commit

Permalink
Invert Earth's rotation in solar_system example
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Aug 4, 2024
1 parent 2b1b9c9 commit cc07690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/solar_system/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cc07690

Please sign in to comment.