mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-12-23 10:11:54 +00:00
Fix opacity blending on colored brush strokes (#1119)
Make apply opacity function use associated alpha
This commit is contained in:
parent
951d9912bf
commit
79dade24e5
1 changed files with 1 additions and 1 deletions
|
|
@ -608,7 +608,7 @@ impl Color {
|
|||
}
|
||||
|
||||
pub fn apply_opacity(&self, opacity: f32) -> Self {
|
||||
Self::from_rgbaf32_unchecked(self.r(), self.g(), self.b(), self.a() * opacity)
|
||||
Self::from_rgbaf32_unchecked(self.r() * opacity, self.g() * opacity, self.b() * opacity, self.a() * opacity)
|
||||
}
|
||||
|
||||
pub fn to_associated_alpha(&self, alpha: f32) -> Self {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue