Condividi tramite


RGBSCHEME( ) Function

Returns an RGB color pair or an RGB color pair list from a specified color scheme.

RGBSCHEME(nColorSchemeNumber [, nColorPairPosition])

Return Values

Character

Parameters

  • nColorSchemeNumber
    Specifies the number of the color scheme for which you want a complete RGB color listing. RGBSCHEME( ) returns 10 RGB color pairs.
  • nColorPairPosition
    Returns a single RGB color pair from a color scheme. nColorPairPosition specifies the position of the RGB color pair in the color scheme. For example, if nColorPairPosition is 4, the fourth RGB color pair is returned.

Remarks

Use SCHEME( ) to return a traditional color pair or a color pair list from a color scheme. RGB color pairs use numeric values to specify colors. Traditional color pairs use letters to specify colors.

Example

The following displays the third RGB color pair from color scheme number 4.

CLEAR
? RGBSCHEME(4,3)

See Also

Colors Overview | RGB( ) | SCHEME( )