<< Click to Display Table of Contents >>
Color Formatting |
In Color-type properties, changing a value can be performed using dialog boxes, such as the one displayed on the next figure, available on Properties List by clicking . To select a color, select a pre-defined color on the Default tab or inform a color using its components on the Customized tab.
Colors window
The Other option allows users to select a color from anywhere on a screen, inside or outside Elipse E3 Studio. Click and then the intended color to capture it to the color window.
To customize a color, users can combine RGB (red, green, and blue components) or HSL (hue, saturation, and lightness components) methodologies.
Customized tab
An RGB scale describes a color by mixing three primary colors, as follows:
•Red: Indicates the amount of primary red component in color composition
•Green: Indicates the amount of primary green component in color composition
•Blue: Indicates the amount of primary blue component in color composition
Each one of these three color elements can have an intensity degree that ranges from 0 (zero) to 255.
An HSL scale describes a color by mixing three primary components, as follows:
•Hue: Specifies a color distribution within the visible light spectrum
•Saturation: Indicates the intensity of a certain hue. A highly saturated hue has a more intense color, while a less saturated hue seems grayer
•Lightness: Indicates the amount of light applied to a color. The higher the luminance, the lighter the color. Conversely, the lower the luminance, the darker the color
These elements can also have their intensity degree ranging from 0 (zero) to 255. Thus, specify a value for each item, according to the color tone, or else select the desired color directly with the mouse pointer on window scales.
A numerical value for each color is obtained using the next formula.
Red * 256 ^ 0 + Green * 256 ^ 1 + Blue * 256 ^ 2
Which is equivalent to:
Red * 1 + Green * 256 + Blue * 65536
Variables Red, Green, and Blue can assume values ranging from 0 (zero) to 255, according to the next examples.
•Black (0, 0, 0): 0 * 1 + 0 * 256 + 0 * 65536 = 0
•White (255, 255, 255): 255 * 1 + 255 * 256 + 255 * 65536 = 16777215
•Red (255, 0, 0): 255 * 1 + 0 * 256 + 0 * 65536 = 255
•Green (0, 255, 0): 0 * 1 + 255 * 256 + 0 * 65536 = 65280
•Blue (0, 0, 255): 0 * 1 + 0 * 256 + 255 * 65536 = 16711680
NOTE |
Values stored on object properties referring to colors are numerical, calculated using the previously described formula. The Find and Replace tool uses this stored value on its search process, and not the values formatted as RGB, as displayed on the Properties List. |