Implement color filter support for Primitive::Svg in iced_tiny_skia
This commit is contained in:
parent
aa4b5bb6b9
commit
424ac81773
2 changed files with 50 additions and 19 deletions
|
|
@ -197,10 +197,11 @@ impl Backend {
|
|||
Primitive::Svg {
|
||||
handle,
|
||||
bounds,
|
||||
color: _, // TODO: Implement color filter
|
||||
color,
|
||||
} => {
|
||||
self.vector_pipeline.draw(
|
||||
handle,
|
||||
*color,
|
||||
(*bounds + translation) * scale_factor,
|
||||
pixels,
|
||||
clip_bounds.map(|_| clip_mask as &_),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue