Implement From<Color> for canvas::Fill
This commit is contained in:
parent
2a795faf4e
commit
81096ef454
3 changed files with 15 additions and 12 deletions
|
|
@ -12,3 +12,9 @@ impl Default for Fill {
|
|||
Fill::Color(Color::BLACK)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Color> for Fill {
|
||||
fn from(color: Color) -> Fill {
|
||||
Fill::Color(color)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue