summaryrefslogtreecommitdiffstats
path: root/examples/clock
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-04-14 06:38:06 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-04-14 06:38:06 +0200
commit81096ef454a9aacacf3853f7dfe96b8b9228f200 (patch)
tree26c023761dc306fc9160eb42eef3bcf29b0aa407 /examples/clock
parent2a795faf4e3357397298d0c64dcc2c56169906b8 (diff)
downloadiced-81096ef454a9aacacf3853f7dfe96b8b9228f200.tar.gz
iced-81096ef454a9aacacf3853f7dfe96b8b9228f200.tar.bz2
iced-81096ef454a9aacacf3853f7dfe96b8b9228f200.zip
Implement `From<Color>` for `canvas::Fill`
Diffstat (limited to 'examples/clock')
-rw-r--r--examples/clock/src/main.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/clock/src/main.rs b/examples/clock/src/main.rs
index a85a964c..1379d3a6 100644
--- a/examples/clock/src/main.rs
+++ b/examples/clock/src/main.rs
@@ -101,10 +101,7 @@ impl canvas::Drawable for LocalTime {
let clock = canvas::Path::new(|path| path.circle(center, radius));
- frame.fill(
- &clock,
- canvas::Fill::Color(Color::from_rgb8(0x12, 0x93, 0xD8)),
- );
+ frame.fill(&clock, Color::from_rgb8(0x12, 0x93, 0xD8));
fn draw_hand(
n: u32,