Implement From<Color> for canvas::Fill
This commit is contained in:
parent
2a795faf4e
commit
81096ef454
3 changed files with 15 additions and 12 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue