## color-spec.pkg
# Compiled by:
#
src/lib/x-kit/xclient/xclient-internals.sublib# The color imp manages colors for a given screen.
package color_spec
: (weak) Color_Spec # Color_Spec is from
src/lib/x-kit/xclient/src/window/color-spec.api{
# Color specifications.
# Eventually, this will be extended to R5
# device independent color specifications.
#
Color_Spec
#
= CMS_NAME String
#
| CMS_RGB { red: Unt,
green: Unt,
blue: Unt
}
;
fun get_color (CMS_RGB { red, green, blue }) => rgb::rgb_from_unts (red, green, blue);
get_color (CMS_NAME colorname) => rgb::rgb_from_name colorname;
end;
}; # package color_spec