TI99 Environment

# CALL_SCREEN

Syntax

CALL_SCREEN(color-code)

Description

The SCREEN function changes the color of the screen to the color specified by color-code (1-16). The standard screen color for TI Extended BASIC is 8, cyan.

Example Code

    ` Adapted from TI Games for Kids Book, Page 9
    waittime = 50
    call_clear()
    for n=l to 4
    call_char(88+n*8,"007e424242427e00")
    call_color(8+n,n*3,1)
    next n
    diff=1
    col=1
    randomize perftimer()
    do
     repeat
      x=int(rnd(3)+1)
      y=int(rnd(3)+1)
      call_hchar(24,15-col,88+8*x,1) : call_hchar(24,14+col,88+8*y,1) : ti_print(1,"")
      tiwait(waittime)
      col=col+diff
     until (col<=1) or (col>=10)
      diff=-diff
      CALL_SCREEN(rnd(14)+2)
    loop

Go back to ...

TI99E Commands Menu
Main Menu

Copyright © Carlos Santiago Lebron - TI99 Environment 2020