Handbook
Glossary
color? ( object -- ? )
Vocabulary
colors
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
color
class.
Definition
USING:
classes.tuple.private
colors.lch
colors.ryb
colors.xyy
colors.yiq
colors.yuv
kernel
slots.private
;
IN:
colors
:
color?
( object -- ? )
dup
tuple?
[
layout-of
7
slot
dup
\
yuva
eq?
[
drop
t
]
[
dup
\
yiqa
eq?
[
drop
t
]
[
dup
\
xyYa
eq?
[
drop
t
]
[
dup
\
ryba
eq?
[
drop
t
]
[
dup
\
LCHab
eq?
~quotation~ ~quotation~
if
]
if
]
if
]
if
]
if
]
[
drop
f
]
if
;