<<

Contents

Search

>>

 

GET_RGB$

 

 

Function

 

 

Syntax:

RGB(<Color number>)

 

<Color number> = <NUM-EXPRESSION>

 

 

Meaning:

Returns the color values red, green and blue of the color <Color number>.

 

GET_RGB$ returns a string which contains the values red, green and blue separated by a comma.

 

If the color <Color number> is not defined GET_RGB$ returns an empty string "".

 

<Color> must be between 0 and 255, otherwise GET_RGB$ returns an empty string "".

 

Parameter:

Color number

Number of color

 

Sample:

RGB(7) = 255,255,0

H$ = GET_RGB$(7) // H$ contains: "255,255,0"

 

See also:

RGB

LPCOLOR