Specifying Colors

Description

Alpha Anywhere provides extremely fine control over colors when you set the properties of object on layouts, or when you specify a color in an Xdialog form.

H

Hue: 0 - 360

L

Luminosity: 0 - 100

S

Saturation: 0 - 100

R

Red: 0 - 255

G

Green: 0 - 255

B

Blue: 0 - 255

Specifying a Color

You can specify a color in two ways. If the color is a named color, you can do this.

{background=Red}

If there is no named color available, you can specify the color's RGB values.

{background=#247,227,144}

Specifying a Relative Color

Given a color, you can modify one or more of its values. The syntaxes are (remove all spaces in the final version):

+|-Symbol Amount Color_Name
+|-Symbol Amount RGB_Value

Symbol is a value from the table above. Amount is a value within the appropriate value range. For example, reduce the luminosity of "Red" by 10.

{background=-L10Red}

Increase the hue of color "#60,180,30" by 25.

{background=+H25#60,180,30}

Specifying an Absolute Color

Given a color, you can set one or more of its values. The default color is "Black", which is "#0,0,0". The syntaxes are (remove all spaces in the final version):

##Symbol Amount [ +Symbol Amount [ +Symbol Amount [ +Color_Name ]]]
##Symbol Amount [ +Symbol Amount [ +Symbol Amount [ +RGB_Value ]]]

For example, start with the color "Red" and set its blue component to 50 and green component to 25.

{background=##B50+G25Red}

Starting with the default color "Black", define the color that we call "Blue" by setting its hue to 240, luminosity to 50, and saturation to 100.

{background=##H240+L50+S100}

Combining Relative and Absolute Syntaxes

This example takes "Light Blue" and decreases the hue by 25 and sets the luminosity to 75.

{background=-H25##L75Light Blue}

Limitations

Desktop applications only.

See Also