Skip to content

Commit

Permalink
Fix: _highContrastLuminanceThreshold as string (fixes #99) (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfoster committed Oct 13, 2023
1 parent 2858948 commit ba55512
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/ColorTransformations.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Color from './Color';
import FILTERS from './COLOR_FILTERS';

const HIGH_CONTRAST = ({ _highContrastLuminanceThreshold }) => {
_highContrastLuminanceThreshold = parseFloat(_highContrastLuminanceThreshold);
return [
[0, 10, 0], // Move 0-10 to 0
[10, _highContrastLuminanceThreshold + 1, 10, 30, false], // For 10-71 (not inclusive) move towards 10 not more than 30
Expand Down

0 comments on commit ba55512

Please sign in to comment.