INK

This command will set the current ink color using the specified color value.

  Syntax
INK Foreground Color,Background Color
  Parameters
Foreground Color
Integer
This value specifies the foreground ink colour, and is returned from using the RGB(red,green,blue) command.
Background Color
Integer
This value specifies the background ink colour, and is returned from using the RGB(red,green,blue) command.

  Returns

This command does not return a value.

  Description

You can use the RGB command to make the generation of the color value straight forward.

  Example Code
INK RGB(255,255,0),RGB(0,0,255)
PRINT "YELLOW IN BLUE"
WAIT KEY
  See also

BASIC2D Commands Menu
Index