Skip to content

Commit 455d820

Browse files
authored
refactor: fix typo in color-convert (blud -> blue) (#156)
1 parent 5f02345 commit 455d820

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/color-convert/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,12 +318,12 @@ export const rgbToXY = ({ r, g, b }: RgbColor): XYColor => {
318318

319319
const red = translateColor(r / 255);
320320
const green = translateColor(g / 255);
321-
const blud = translateColor(b / 255);
321+
const blue = translateColor(b / 255);
322322

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

328328
return xyz;
329329
};

0 commit comments

Comments
 (0)