Handbook
Glossary
relative-luminance ( color -- n )
Vocabulary
colors
.
contrast
Inputs
color
an
object
Outputs
n
an
object
Definition
USING:
colors
colors.contrast.private
kernel
math
;
IN:
colors.contrast
:
relative-luminance
( color -- n )
>rgba-components
drop
[
adjust-color
]
tri@
[
0.2126
*
]
[
0.7152
*
]
[
0.0722
*
]
tri*
+
+
;