Skip to content

Commit

Permalink
Update Colour.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hamada147 authored Aug 12, 2018
1 parent bcba051 commit 438e244
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Colour.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ class Colour {
* @param {[string]} hex hex colour value desired to be converted to LAB
*/
static HEX2LAB(hex) {
const [R, G, b, a] = color.HEX2RGBA(hex);
const [X, Y, Z] = color.RGB2XYZ(R, G, b, a);
const [L, A, B] = color.XYZ2LAB(X, Y, Z);
const [R, G, b, a] = Colour.HEX2RGBA(hex);
const [X, Y, Z] = Colour.RGB2XYZ(R, G, b, a);
const [L, A, B] = Colour.XYZ2LAB(X, Y, Z);
return [L, A, B];
}
/**
Expand Down

0 comments on commit 438e244

Please sign in to comment.