mirror of
https://github.com/penpot/penpot.git
synced 2025-05-23 04:46:11 +02:00
🎉 Support for radial gradients with wasm render
This commit is contained in:
parent
0eedc036be
commit
09aa4529f8
5 changed files with 106 additions and 16 deletions
|
@ -108,6 +108,7 @@ impl Shape {
|
|||
let fill = self.fills.last_mut().ok_or("Shape has no fills")?;
|
||||
let gradient = match fill {
|
||||
Fill::LinearGradient(g) => Ok(g),
|
||||
Fill::RadialGradient(g) => Ok(g),
|
||||
_ => Err("Active fill is not a gradient"),
|
||||
}?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue