summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2022-02-04 14:44:08 +0700
committerLibravatar GitHub <noreply@github.com>2022-02-04 14:44:08 +0700
commitc15701581e52ae838f8e7153ae7e639dd86b1ef6 (patch)
tree27be3d4b7fa56b3b72b9265c07907b1349d07c37 /examples
parent74a64d88e1b5b4173fa15c30506aece19ea368d0 (diff)
parentbace264bfe5e3cb5046867bd411e54969a637c79 (diff)
downloadiced-c15701581e52ae838f8e7153ae7e639dd86b1ef6.tar.gz
iced-c15701581e52ae838f8e7153ae7e639dd86b1ef6.tar.bz2
iced-c15701581e52ae838f8e7153ae7e639dd86b1ef6.zip
Merge pull request #1225 from tarkah/feat/canvas-line-dash
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..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()
},
);