Handbook
Glossary
yiqa
YIQ colors
Next:
<yiqa> ( y in-phase quadrature alpha -- yiqa )
Vocabulary
colors
.
yiq
Class description
The class of YIQ (Y, In-Place, Quadrature) colors with an alpha channel. All slots store values in the interval
[0,1]
.
Definition
IN:
colors.yiq
TUPLE:
yiqa
{
y
read-only
}
{
in-phase
read-only
}
{
quadrature
read-only
}
{
alpha
read-only
}
;
Methods
USING:
accessors
colors
colors.yiq
combinators
kernel
math
math.order
;
M:
yiqa
>rgba
{
[
y>>
]
[
in-phase>>
]
[
quadrature>>
]
[
alpha>>
]
}
cleave
[
[
[
0.9468822170900693
*
]
[
0.6235565819861433
*
]
bi*
+
+
]
[
[
0.27478764629897834
*
]
[
0.6356910791873801
*
]
bi*
+
-
]
[
[
1.1085450346420322
*
]
[
1.7090069284064666
*
]
bi*
-
-
]
3tri
[
0.0 1.0
clamp
]
tri@
]
dip
<rgba>
;
inline
USING:
colors.yiq
;
M:
yiqa
>yiqa
;
inline