- HTML color
- RGB function and code editor
- Various
RGB (Function) In french: RVB
// Color an area in light blue dFill(10, 50, RGB(0, 255, 255))
Syntax
<Result> = RGB(<Red Component> , <Green Component> , <Blue Component>)
<Result>: Integer Color (24 bits) corresponding to the selected components. This color is the result of the following formula:Color = 65536 * Blue Component + 256 * Green Component + Red Component. <Red Component>: Integer (from 0 to 255) Amount of red in the color. <Green Component>: Integer (from 0 to 255) Amount of green in the color. <Blue Component>: Integer (from 0 to 255) Amount of blue in the color. Remarks Versions 22 and laterRGB function and code editor In the code editor, typing the RGB function with its parameters automatically displays a square with the corresponding color: A click in the colored square is used to open the color picker. If the color is modified, the modification is taken into account when validating the color picker. New in version 22RGB function and code editor In the code editor, typing the RGB function with its parameters automatically displays a square with the corresponding color: A click in the colored square is used to open the color picker. If the color is modified, the modification is taken into account when validating the color picker. RGB function and code editor In the code editor, typing the RGB function with its parameters automatically displays a square with the corresponding color: A click in the colored square is used to open the color picker. If the color is modified, the modification is taken into account when validating the color picker. - The requested colors can be modified according to the capacity of the current screen mode (EGA, 32 colors, etc.).
- Important: To specify the colors, we recommend that you use the color constants defined in WLanguage (see the preset colors of WLanguage).
This page is also available for…
|
|
|