mirror of
https://github.com/penpot/penpot.git
synced 2025-05-25 00:06:21 +02:00
🎉 Render liner gradient fills
This commit is contained in:
parent
8fa334265c
commit
c8e322cd58
4 changed files with 116 additions and 15 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue