This commit is contained in:
Viktor Rådberg
2024-03-16 10:40:18 +01:00
parent 71e5614f52
commit efbfb7719c

View File

@@ -70,8 +70,8 @@ const bc = 0.0722;
// low-gamma adjust coefficient
const lowc = 1 / 12.92;
function adjustGamma(_) {
return Math.pow((_ + 0.055) / 1.055, 2.4);
function adjustGamma(input: number) {
return Math.pow((input + 0.055) / 1.055, 2.4);
}
export const relativeLuminance = (rgb: RGBA) => {