Handbook
Glossary
>yuva ( color -- yuva )
YUV colors
Prev:
<yuva> ( y u v alpha -- yuva )
Vocabulary
colors
.
yuv
Inputs
color
an
object
Outputs
yuva
an
object
Definition
IN:
colors.yuv
GENERIC:
>yuva
( color -- yuva )
Methods
USING:
colors
colors.yuv
kernel
;
M:
object
>yuva
>rgba
>yuva
;
USING:
colors
colors.yuv
colors.yuv.private
math
;
M::
rgba
>yuva
( rgba -- yuva )
rgba
>rgba-components
:>
( r g b a )
Wr
r
*
Wg
g
*
Wb
b
*
+
+
:>
y
Umax
1
Wb
-
/
b y
-
*
:>
u
Vmax
1
Wr
-
/
r y
-
*
:>
v y u v a
<yuva>
;
USING:
colors.yuv
;
M:
yuva
>yuva
;
inline