Skip to content

Commit

Permalink
Small transparency fix (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
slimbuck authored Nov 7, 2024
1 parent f719d7a commit 6886d52
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ui/color-panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,15 @@ class ColorPanel extends Container {
tintClr: selected.tintClr.clone(),
brightness: selected.brightness,
blackPoint: selected.blackPoint,
whitePoint: selected.whitePoint
whitePoint: selected.whitePoint,
transparency: selected.transparency
},
oldState: {
tintClr: selected.tintClr.clone(),
brightness: selected.brightness,
blackPoint: selected.blackPoint,
whitePoint: selected.whitePoint
whitePoint: selected.whitePoint,
transparency: selected.transparency
}
});
}
Expand All @@ -233,6 +235,7 @@ class ColorPanel extends Container {
newState.brightness = brightnessSlider.value;
newState.blackPoint = blackPointSlider.value;
newState.whitePoint = whitePointSlider.value;
newState.transparency = Math.exp(transparencySlider.value);
events.fire('edit.add', op);
op = null;
}
Expand Down

0 comments on commit 6886d52

Please sign in to comment.