srgb-compand ( v -- v' )


Vocabulary
colors.xyz.private

Inputs
van object


Outputs
v'an object


Definition


: srgb-compand ( v -- v' )
dup 0.0031308 <=
[ 12.92 * ] [ 2.4 recip ^ 1.055 * 0.055 - ] if ;