🎉 Support for radial gradients with wasm render

This commit is contained in:
Alejandro Alonso 2024-12-03 14:16:46 +01:00
parent 0eedc036be
commit 09aa4529f8
5 changed files with 106 additions and 16 deletions

View file

@ -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"),
}?;