Skip to content
Property Value
Hex Value $EF67
Categories
    Localizations
    • FR: CouleurTexte(

    TextColor(

    Overview

    Set text color prior to using the Text(command.
    Color#: 10 - 24 or color name pasted from [vars] COLOR.

    Availability: Token only available from within the Basic editor.

    Syntax

    TextColor([color#]

    Arguments

    NameTypeOptional
    color#colorNumYes

    Location

    2nd, draw, DRAW, A:TextColor(


    Description

    The TextColor( token is used to set the color for Text(. Although the default color is Blue, the calculator saves the color until it is changed again using TextColor( or when a memory reset occurs. When a memory reset occurs, the text color is reset back to blue.

    :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.

    Background Colors

    When the calculator displays text on the graphscreen, it displays it on top of a predetermined background color. This background color is white for all colors of text, except for yellow, white, and light gray (LTGRAY), which have a background color of medium gray (MEDGRAY). If you want to display text in your game without the annoying text-background, you need to have the graphscreen background be white or medium gray so the text-background doesn't show. The only known alternative is to use Pxl-On to draw the text manually, so how you work around this issue depends almost entirely on how lazy you are. You can see how this works by looking at the image in the Command Summary sidebar.

    Error Conditions

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

    Source: parts of this page were written by the following TI|BD contributors: Battlesquid, Electromagnet8, iPhoenixOnTIBD, Myles_Zadok.

    History

    Calculator OS Version Description
    TI-84+CSE 4.0 Added
    Authors: Adrien Bertrand