Handbook
Glossary
cmyka
CMYK colors
Next:
<cmyka> ( cyan magenta yellow black alpha -- cmyka )
Vocabulary
colors
.
cmyk
Class description
The class of CMYK (Cyan, Magenta, Yellow, Black) colors with an alpha channel. All slots store values in the interval
[0,1]
.
Definition
IN:
colors.cmyk
TUPLE:
cmyka
{
cyan
read-only
}
{
magenta
read-only
}
{
yellow
read-only
}
{
black
read-only
}
{
alpha
read-only
}
;
Methods
USING:
accessors
colors.cmyk
colors.gray
combinators
kernel
math
math.order
;
M:
cmyka
>gray
[
{
[
cyan>>
0.3
*
]
[
magenta>>
0.59
*
]
[
yellow>>
0.11
*
]
[
black>>
]
}
cleave
+
+
+
1.0
min
1.0
swap
-
]
[
alpha>>
]
bi
<gray>
;
USING:
accessors
colors
colors.cmyk
kernel
math
math.order
;
M:
cmyka
>rgba
[
[
cyan>>
]
[
black>>
]
bi
+
]
[
[
magenta>>
]
[
black>>
]
bi
+
]
[
[
yellow>>
]
[
black>>
]
bi
+
]
tri
[
1.0
min
1.0
swap
-
]
tri@
1.0
<rgba>
;
inline