mirror of
https://github.com/penpot/penpot.git
synced 2025-05-23 01:46:11 +02:00
Merge pull request #5410 from penpot/superalex-radial-gradients-wasm-render
🎉 Support for radial gradients with wasm render
This commit is contained in:
commit
33e70a4108
5 changed files with 106 additions and 16 deletions
|
@ -110,6 +110,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