Skip to content

Commit

Permalink
refactor: fix typo in color-convert (blud -> blue) (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
ximex authored Sep 24, 2024
1 parent 5f02345 commit 455d820
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/color-convert/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,12 @@ export const rgbToXY = ({ r, g, b }: RgbColor): XYColor => {

const red = translateColor(r / 255);
const green = translateColor(g / 255);
const blud = translateColor(b / 255);
const blue = translateColor(b / 255);

const xyz = {} as XYColor;
xyz.x = red * 0.4124 + green * 0.3576 + blud * 0.1805;
xyz.y = red * 0.2126 + green * 0.7152 + blud * 0.0722;
xyz.bri = red * 0.0193 + green * 0.1192 + blud * 0.9505;
xyz.x = red * 0.4124 + green * 0.3576 + blue * 0.1805;
xyz.y = red * 0.2126 + green * 0.7152 + blue * 0.0722;
xyz.bri = red * 0.0193 + green * 0.1192 + blue * 0.9505;

return xyz;
};
Expand Down

0 comments on commit 455d820

Please sign in to comment.