Table of Contents
|
Color Resolution EngineThe Color Resolution Engine (or CRE) is a powerful expression evaluator that turns text you type into a color. It allows you to specify a color in any number of formats, grab colors specific to your system, and combine colors with expressions. Accessing the Color Resolution EngineThe easiest way to access the Color Resolution Engine is to use the "Evaluator" selector in the NPS Color Picker dialog, or using the Quick Evaluator accessible by right-clicking on the drawing colors in the main window. You can type a color expression or paste it in from another program using the Ctrl+V keyboard shortcut. The Color Resolution Engine is also used in color schemes (to enable them to match your system colors) and color swatch palettes. Basic color formatsYou can enter a color using various standardized formats including the following. You can also use the Color Picker to convert the current color to each of these formats in order to copy it into other programs. Named colors
Enter a named HTML color such as HTML RGB color
Enter a color in HTML format such as CSS3 RGB(A) and HSL(A)
Enter a color in CSS3-compatible format such as CSS4 HWB
This is part of the CSS4 draft. Specify a color via its hue and the amount of blackness and whiteness (0 to 100) to mix with it,
for example Gray
Specify a grayscale color with a value from 0 to 255 such as ARGB and RGB
Specify a color in (A)RGB format with each component ranging from 0 to 255, such as RGB Triplets
Specify a color in red/green/blue format as a set of triplets, such as HSV and HSL
Specify a color in HSV or HSL format. Hue is specified from 0 to 360 and saturation/value/lightness are specified from 0 to 255.
For example CMY and CMYK
Specify a color in CMY (cyan, magenta, yellow) or CMYK (cyan, magenta, yellow, key) format with each component from 0 to 255.
The difference between the two is whether black is mixed with the components or separated out into its own component. For example
YUV
Specify a color in YUV format. Each component ranges from 16 to 235. For example Win32/OLESpecify a color in Win32 integer format AndroidSpecify a color in Android integer format System colorsSpecify a system color from your system's current theme. Note that starting in Windows Vista these colors are largely unaffected by the theme settings but can still be modified in the registry.
Classic Windows colors are:
To specify the Windows accent color (starting in Vista), use Random
Specify Color functionsColors can be manipulated using various functions. Specify colors using any of the above formats, or nest multiple expressions together. alpha(alpha,color)
Sets the alpha channel of blend(color1,color2,[bias])
Blends two colors together. The optional xphover(color,[pressed])
Calculates the inner hover color for a button in the "Office XP" style. The match_hue(color_base,color_hue)
Takes the hue from hue_shift(shift_amount,color)
Shifts the hue of lighten(lighten_amount,color)
Lightens or darkens invert(color)
Inverts the specified color in the RGB color space. For example
To invert the lightness of the color, combine this with the readable(color)
Finds the most-readable foreground color (black or white) given the background |