TI-BASIC:Textcolor

From Learn @ Cemetech
Revision as of 21:53, 24 February 2016 by Maintenance script (talk | contribs) (Automated @@ correction)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

[[File:|border]]

Command Summary

Defines the color of the text

Command Syntax

TextColor(color TextColor(number

Menu Location

Press:

  1. 2ND PRGM to enter the DRAW menu
  2. A to select TextColor(, or use arrows

Calculator Compatibility

TI-84+CSE and TI-84+CE

Token Size

2 bytes

The TextColor( token is used to set the color before Text(. Although the default color is blue, the calculator saves the color until it is changed again using TextColor( or a memory reset.

:TextColor(BLUE
:Text(0,0,"THIS TEXT IS BLUE
:TextColor(GRAY
:Text(12,0,"THIS TEXT IS GRAY
:Text(24,0,"THIS IS GRAY AS WELL
:TextColor(12
:Text(36,0,"THIS TEXT IS BLACK

The following table are the colors associated with their numeric values.

Color Token Numeric Value
BLUE 10
RED 11
BLACK 12
MAGENTA 13
GREEN 14
ORANGE 15
BROWN 16
NAVY 17
LTBLUE 18
YELLOW 19
WHITE 20
LTGRAY 21
MEDGRAY 22
GRAY 23
DARKGRAY 24

Each color token is 2 bytes. The color tokens can be used in calculations. For example, LTBLUE/3 will equal 6.

Error Conditions

  • ERR:DOMAIN is thrown if the argument is not an integer within the 10-24 range.