TI99 Environment

# CALL_MULTICOLORCHARLOAD()

Syntax

CALL_MULTICOLORCHARLOAD()

Description

Like CHARLOAD, this function offers an alternate method of creating custom MULTICOLOR characters and graphics. When this function is called, it will look inside the program for a label named _MULTICOLOR: followed by data statements in a specific format. The first data statement is the character's ASCII code being customized. The next 8 data statements or elements contain the characters hexadecimal color bits.
    _MULTICOLOR:
    ` GUY custom character
    data 128             ` ASCII code
    data "00BBB000"
    data "00991900"
    data "00999000"
    data "00090000"
    data "0FFFFF00"
    data "F0FFF0F0"
    data "90FFF090"
    data "0CC0CC00"
Each individual character within the data statements line represents a color bit in hexadecimal notation: Colors Table:
Color Number | Bit Color
0 | Transparent*
1 | Black
2 | Medium Green
3 | Light Green
4 | Dark Blue
5 | Light Blue
6 | Dark Red
7 | Cyan
8 | Medium Red
9 | Light Red
A | Dark Yellow
B | Light Yellow
C | Dark Green
D | Magenta
E | Gray
F | White
* A transparent bit will show the current screen color through. Characters will turn invisible if all their bits are transparent.
Example Code

    randomize hitimer()
    CALL_MULTICOLORCHARLOAD()   ` Loads GUY custom character ASCII 128
    for i = 1 to 12
       call_sprite(i,128,0,96,1 + 16 * (i - 1),0,rnd(3)+1)
    next i
    display_at(1,1,"Hit any key to magnify",0)
    tiwaitkey()
    call_magnify(2)
    call_clear()
    display_at(24,1,"Hit any key to end",0)
    tiwaitkey()
    END

    Note:For this example, copy and paste the following data statements below the _MULTICOLOR: label in the program. Make sure that the last data statement is a single 0 (zero).

    ` GUY custom character
    data 128             ` ASCII code
    data "00BBB000"
    data "00991900"
    data "00999000"
    data "00090000"
    data "0FFFFF00"
    data "F0FFF0F0"
    data "90FFF090"
    data "0CC0CC00"
    data 0

Go back to ...

TI99E Commands Menu
Main Menu

Copyright © Carlos Santiago Lebron - TI99 Environment 2020