summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Cory Forsstrom <cory.forsstrom@lich.io>2022-01-27 09:40:52 -0800
committerLibravatar Cory Forsstrom <cory.forsstrom@lich.io>2022-01-27 09:40:52 -0800
commite835cea03c5d6eeba2d76b52206516dcc2a6b628 (patch)
treeb54e2c27925284e16230f5d1eaf76ea9afe86860 /examples
parent4aa943cbc63230dfcb995c469ceec9f74e6132e1 (diff)
downloadiced-e835cea03c5d6eeba2d76b52206516dcc2a6b628.tar.gz
iced-e835cea03c5d6eeba2d76b52206516dcc2a6b628.tar.bz2
iced-e835cea03c5d6eeba2d76b52206516dcc2a6b628.zip
Add line dash API
Diffstat (limited to 'examples')
-rw-r--r--examples/solar_system/src/main.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/solar_system/src/main.rs b/examples/solar_system/src/main.rs
index 5f9724f3..0e7da97f 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: vec![6.0, 3.0],
+ },
..Stroke::default()
},
);