SecondBASIC Documentation v3

Home / Command Reference / Color, Ink

Color, Ink

Description: Changes the color, priority, and positioning of the text for all subsequent Print commands.

Syntax:

Color <palette> [, <priority> [, <vertical> [, <horizontal>]]]
Ink <palette> [, <priority> [, <vertical> [, <horizontal>]]]

Part Description
<palette> Required. This is the palette to use for the color of the text. The text color is the first non-transparent color in the palette (index 1). Valid values for <palette> range between 0 and 3.
<priority> Optional. Sets the priority of the text. 0 is low priority, 1 is high priority.
<vertical> Optional. Valid values are 0 and 1. 0 is standard vertical orientation and 1 is flipped vertically.
<horizontal> Optional. Valid values are 0 and 1. 0 is standard horizontal orientation, and 1 is flipped horizontally.

Notes: Color and Ink have been turned into the same command. Ink should no longer be used as Ink was a derivative of the Color function.

The default colors are:

Example:

        Color 1,0,0,0
        Print "Hello World"
        Ink 1,0,1,0
        Print "Hello World"