TI99 Environment

CALL_CLEAR


Syntax

CALL_CLEAR()

Description

When the CLEAR() function is called, the space character (ASCII code 32) is placed across the entire screen. Sprites are not affected by the CLEAR() function. If you want to clear any sprite from the screen you will need to use the HIDESPRITE(), DELSPRITE() or DELSPRITEALL() functions.

Note: As with any ASCII character, you can also change the shape and color of the space ASCII character 32. Therefore, CALL_CLEAR() can actually fill the screen with a custom character or a custom foreground and/or background color.

  Example Code
` Bouncing Ball    
 Call_Char(96,"3C7EFFFFFFFF7E3C")
 Call_Color(9,5,16)
 Call_Color(1,16,16)
 x = 16 : y = 12 : xdir = 1 : ydir = 1
 do   
    inc x,xdir
    inc y,ydir
    if x < 1 or x > maxcols 
        xdir = -xdir
        if y < 1 or y > maxrows then ydir = -ydir
        goto _loop
    endif  
    if y < 1 or y > maxrows then ydir = -ydir : goto _loop      
    CALL_CLEAR()
    Call_Hchar(y,x,96,1) : ti_SYNC()
    wait 20       
_loop:
 loop

Go back to ...

TI99E Commands Menu
Main Menu

Copyright © Carlos Santiago Lebron - TI99 Environment 2020