Handbook
Glossary
rgba-distance ( color1 color2 -- distance )
Vocabulary
colors
.
distances
Inputs
color1
an
object
color2
an
object
Outputs
distance
an
object
Definition
USING:
accessors
colors
kernel
math
math.functions
;
IN:
colors.distances
:
rgba-distance
( color1 color2 -- distance )
[
>rgba
]
bi@
[
red>>
]
[
blue>>
]
[
green>>
]
[
bi@
-
sq
]
tri-curry@
2tri
+
+
sqrt
;