Skip to content

Commit

Permalink
Fix missing value parameter in setLuminance
Browse files Browse the repository at this point in the history
  • Loading branch information
xiegeo authored and LeaVerou committed Jan 4, 2023
1 parent 8fc1e66 commit b235490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/luminance.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function getLuminance (color) {
return get(color, [xyz_d65, "y"]);
}

export function setLuminance (color) {
export function setLuminance (color, value) {
set(color, [xyz_d65, "y"], value);
}

Expand Down

0 comments on commit b235490

Please sign in to comment.