diff options
Diffstat (limited to 'examples/solar_system')
-rw-r--r-- | examples/solar_system/Cargo.toml | 2 | ||||
-rw-r--r-- | examples/solar_system/src/main.rs | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/examples/solar_system/Cargo.toml b/examples/solar_system/Cargo.toml index 327fe0aa..835396b0 100644 --- a/examples/solar_system/Cargo.toml +++ b/examples/solar_system/Cargo.toml @@ -2,7 +2,7 @@ name = "solar_system" version = "0.1.0" authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"] -edition = "2018" +edition = "2021" publish = false [dependencies] diff --git a/examples/solar_system/src/main.rs b/examples/solar_system/src/main.rs index 5f9724f3..12184dd1 100644 --- a/examples/solar_system/src/main.rs +++ b/examples/solar_system/src/main.rs @@ -163,6 +163,10 @@ impl<Message> canvas::Program<Message> for State { Stroke { width: 1.0, color: Color::from_rgba8(0, 153, 255, 0.1), + line_dash: canvas::LineDash { + offset: 0, + segments: &[3.0, 6.0], + }, ..Stroke::default() }, ); |