Function: color-supported-p
color-supported-p is a function defined in xfaces.c.
Signature
(color-supported-p COLOR &optional FRAME BACKGROUND-P)
Documentation
Return non-nil if COLOR can be displayed on FRAME.
BACKGROUND-P non-nil means COLOR is used as a background. Otherwise, this function tells whether it can be used as a foreground. If FRAME is nil or omitted, use the selected frame. COLOR must be a valid color name.
Probably introduced at or before Emacs version 21.1.
Source Code
// Defined in /usr/src/emacs/src/xfaces.c
{
CHECK_STRING (color);
return (face_color_supported_p (decode_any_frame (frame),
SSDATA (color), !NILP (background_p))
? Qt : Qnil);
}