Skip to content

Commit

Permalink
fix: typo with opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
simbleau committed Sep 11, 2023
1 parent 98a5bc4 commit e81d8f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions integrations/vello_svg/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ fn paint_to_brush(paint: &usvg::Paint, opacity: usvg::Opacity) -> Option<(Brush,
cstop.color.r = stop.color.red;
cstop.color.g = stop.color.green;
cstop.color.b = stop.color.blue;
cstop.color.a = stop.opacity.to_u8();
cstop.offset = (stop.offset * opacity).get() as f32;
cstop.color.a = (stop.opacity * opacity).to_u8();
cstop.offset = stop.offset.get() as f32;
cstop
})
.collect();
Expand All @@ -224,8 +224,8 @@ fn paint_to_brush(paint: &usvg::Paint, opacity: usvg::Opacity) -> Option<(Brush,
cstop.color.r = stop.color.red;
cstop.color.g = stop.color.green;
cstop.color.b = stop.color.blue;
cstop.color.a = stop.opacity.to_u8();
cstop.offset = (stop.offset * opacity).get() as f32;
cstop.color.a = (stop.opacity * opacity).to_u8();
cstop.offset = stop.offset.get() as f32;
cstop
})
.collect();
Expand Down

0 comments on commit e81d8f5

Please sign in to comment.