Skip to content

Commit

Permalink
fix: Fix HSV colors incorrect (disable gamma correction) (#5820)
Browse files Browse the repository at this point in the history
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
  • Loading branch information
Zoooook and Koenkk authored Jun 1, 2023
1 parent 5baf7b4 commit b91a81b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/lib/color.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,14 +463,6 @@ class ColorHSV {
return new ColorHSV(hue, saturation, value);
}

/**
* Returns color after sRGB gamma correction
* @return {ColorHSV} corrected color in HSV space
*/
gammaCorrected() {
return this.toRGB().gammaCorrected().toHSV();
}

/**
* Interpolates hue value based on correction map through ranged linear interpolation
* @param {Nnmber} hue hue to be corrected
Expand Down Expand Up @@ -527,7 +519,7 @@ class ColorHSV {
* @return {ColorHSV} corrected color in HSV space
*/
colorCorrected(meta) {
return this.hueCorrected(meta).gammaCorrected();
return this.hueCorrected(meta);
}
}

Expand Down

0 comments on commit b91a81b

Please sign in to comment.