Handbook
Glossary
srgb-compand ( v -- v' )
Vocabulary
colors
.
xyz
.
private
Inputs
v
an
object
Outputs
v'
an
object
Definition
USING:
kernel
math
math.functions
;
IN:
colors.xyz.private
:
srgb-compand
( v -- v' )
dup
0.0031308
<=
[
12.92
*
]
[
2.4
recip
^
1.055
*
0.055
-
]
if
;