<<

Contents

Search

>>

 

RGB

 

 

Instruction

 

 

Syntax:

RGB(<Color>) = <Red>,<Green>,<Blue>

 

<Color>

= <NUM-EXPRESSION>

<Red>

= <NUM-EXPRESSION>

<Green>

= <NUM-EXPRESSION>

<Blue>

= <NUM-EXPRESSION>

 

 

Meaning:

Specifies a color.

 

RGB defines for the color <Color> the color composition of red, green and blue shares.

 

<Color> must be between 0 and 255, otherwise RGB does not have any effect.

 

The color shares must be between 0 and 255 respectively.

 

Parameter:

Color

Number of color

Red

Red value

Green

Green value

Blue

Blue value

 

Sample:

RGB(7) = 255,255,0 /* Color No. 7 is yellow

 

See also:

GET_RGB$

LPCOLOR