Implement From<Color> for canvas::Fill

This commit is contained in:
Héctor Ramón Jiménez 2020-04-14 06:38:06 +02:00
parent 2a795faf4e
commit 81096ef454
3 changed files with 15 additions and 12 deletions

View file

@ -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,