Classes

Method XbpPresSpace():setColor() Foundation

Sets or returns the default colors for all graphic functions.

Syntax
:setColor( [<nForeground>], [<nBackground>] ) --> aCurrentColor
Parameters
<nForeground>
<nForeground> is a numeric value specifying the foreground color for all graphic functions (Gra..() functions) that support a foreground color. The #include file GRA.CH defines symbolic constants for different colors that can be used for <nForeground>. The constants for colors all begin with GRA_CLR_.
<nBackground>
<nBackground> is a numeric value specifying the background color for all graphic functions that support a background color.
Return

The :setColor() method returns an array containing the current foreground and background colors as {nForegroundColor, nBackgroundColor}. If new colors are set, this method returns an array containing the previous values.

Description

The :setcolor() method determines the colors for graphic functions that are executed in the presentation space.

The GraSetColor() function is the functional equivalent of the :setColor() method. More information can be found in the discussion of the GraSetColor() function.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.