Invert Earth's rotation in solar_system example
This commit is contained in:
parent
2b1b9c984a
commit
cc076903dd
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue