🎉 Render liner gradient fills

This commit is contained in:
Belén Albeza 2024-11-28 15:50:04 +01:00
parent 8fa334265c
commit c8e322cd58
4 changed files with 116 additions and 15 deletions

View file

@ -212,7 +212,7 @@ impl RenderState {
for fill in shape.fills().rev() {
self.drawing_surface
.canvas()
.draw_rect(shape.selrect, &fill.to_paint());
.draw_rect(shape.selrect, &fill.to_paint(&shape.selrect));
}
let mut paint = skia::Paint::default();