FutureBasic Logo

<<    Index    >> FutureBasic 5

long color   statement



Syntax:
long color bluePart,greenPart,redPart [,foregroundFlag]

Description:
Sets the foreground color or background color for the current output window. Each of the three color components can range from 0 (darkest) to 65535 (lightest), and they combine to make any conceivable shade. If you set foregroundFlag to _zTrue, or omit the parameter, then long color sets the foreground color. If you set foregroundFlag to _false, then long color sets the background color.

Note:
long color does not immediately change the appearance of the window. If you set the foreground color, the new color will appear the next time you draw text or a QuickDraw shape (it won't affect the color of anything that's already drawn). If you set the background color, the new color will appear the next time you erase all or part of the window (for example, with the cls statement).
You can use the Toolbox procedures GetForeColor and GetBackColor to find out the current foreground or background color for the current window.

See Also:
color; pen