summaryrefslogtreecommitdiffstats
path: root/examples/modern_art/src/main.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-11-03 05:50:53 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-11-03 05:50:53 +0100
commit84d1b79fefc88534835fdfbe79bc0eb3b43627cf (patch)
treec7ec07de21c62a11b3f8bfec594a4421b78bc509 /examples/modern_art/src/main.rs
parente0bb707f1e3ee1ff27b5caee7d5782ecbad438fd (diff)
downloadiced-84d1b79fefc88534835fdfbe79bc0eb3b43627cf.tar.gz
iced-84d1b79fefc88534835fdfbe79bc0eb3b43627cf.tar.bz2
iced-84d1b79fefc88534835fdfbe79bc0eb3b43627cf.zip
Move `mesh::Style` to `triangle` and reuse it in `fill` and `stroke`
Diffstat (limited to 'examples/modern_art/src/main.rs')
-rw-r--r--examples/modern_art/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/modern_art/src/main.rs b/examples/modern_art/src/main.rs
index db9b0491..0dd21c74 100644
--- a/examples/modern_art/src/main.rs
+++ b/examples/modern_art/src/main.rs
@@ -133,7 +133,7 @@ fn generate_box(frame: &mut Frame, bounds: Size) -> bool {
if solid {
frame.fill_rectangle(top_left, size, random_color());
} else {
- frame.fill_rectangle(top_left, size, &gradient(top_left, size));
+ frame.fill_rectangle(top_left, size, gradient(top_left, size));
};
solid