<<

Contents

Search

>>

 

LPCOLOR

 

 

Instruction

 

 

Syntax:

LPCOLOR = <Foreground Color>,<Background Color>

 

<Foreground Color>

= <NUM-EXPRESSION>

<Background Color>

= <NUM-EXPRESSION>

 

 

Meaning:

Defines the foreground color and the background color for printing with LPRINT.

 

With the instruction RGB 256 colors can be defined (0…255). These color numbers are to be specified as <Foreground Color> and <Background Color>. Negative values mean that the color is not set.

 

At the start of the program LPCOLOR = -1,-1.

 

This instruction only has an effect with ENABLE LPGDI.

 

Parameter:

Foreground Color

Number of color

Background Color

Number of color

 

Sample:

RGB(1) = 0,0,255    /* Color 1 is blue

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

GR_LPCOLOR = 7,1    /* Print yellow on blue

LPRINT "yellow on blue"

 

See also:

RGB

GET_RGB$

LPRINT