Skip to content

Commit

Permalink
make Lea pleased
Browse files Browse the repository at this point in the history
  • Loading branch information
svgeesus committed Nov 24, 2020
1 parent 5e9d051 commit c78e665
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/color.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,13 @@ export default class Color {
}

// Chromaticity coordinates
get uv_chromaticity () {
get uv () {
let [X, Y, Z] = this.xyz;
let denom = X + 15 * Y + 3 * Z;
return [4 * X / denom, 9 * Y / denom];
}

get xy_chromaticity () {
get xy () {
let [X, Y, Z] = this.xyz;
let sum = X + Y + Z;
return [X / sum, Y / sum];
Expand Down

0 comments on commit c78e665

Please sign in to comment.