mirror of
https://github.com/Vikeo/LifeTrinket.git
synced 2025-11-14 23:17:59 +00:00
tsc
This commit is contained in:
@@ -70,8 +70,8 @@ const bc = 0.0722;
|
|||||||
// low-gamma adjust coefficient
|
// low-gamma adjust coefficient
|
||||||
const lowc = 1 / 12.92;
|
const lowc = 1 / 12.92;
|
||||||
|
|
||||||
function adjustGamma(_) {
|
function adjustGamma(input: number) {
|
||||||
return Math.pow((_ + 0.055) / 1.055, 2.4);
|
return Math.pow((input + 0.055) / 1.055, 2.4);
|
||||||
}
|
}
|
||||||
|
|
||||||
export const relativeLuminance = (rgb: RGBA) => {
|
export const relativeLuminance = (rgb: RGBA) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user