Skip to content

Commit

Permalink
Delete rgb calculation for color mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorp committed Jun 9, 2024
1 parent 1ff9f45 commit 0370c03
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/fencer.js
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,6 @@ function mappingsChanged(mode) {
const saturation = Math.max(xRatio, yRatio) * 100;
const lightness = 50;
const hslValue = `hsl(${Math.round(hue)}deg ${Math.round(saturation)}% ${Math.round(lightness)}%)`
const rgbValue = `rgb(${Math.round(xRatio * 255)} 255 ${Math.round(yRatio * 255)})`;

// convert coords to svg values
const [svgX0, svgY0] = svgCoordsFromAxisCoords(location[0]);
Expand Down

0 comments on commit 0370c03

Please sign in to comment.