Implement color filter support for Primitive::Svg in iced_tiny_skia

This commit is contained in:
Héctor Ramón Jiménez 2023-03-09 04:48:35 +01:00
parent aa4b5bb6b9
commit 424ac81773
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
2 changed files with 50 additions and 19 deletions

View file

@ -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 &_),