Move mesh::Style to triangle and reuse it in fill and stroke
This commit is contained in:
parent
e0bb707f1e
commit
84d1b79fef
10 changed files with 72 additions and 98 deletions
|
|
@ -213,7 +213,7 @@ impl<Message> canvas::Program<Message> for State {
|
|||
.build()
|
||||
.expect("Build Earth fill gradient");
|
||||
|
||||
frame.fill(&earth, &earth_fill);
|
||||
frame.fill(&earth, earth_fill);
|
||||
|
||||
frame.with_save(|frame| {
|
||||
frame.rotate(rotation * 10.0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue