TIPower Graphics Functions

DiagonalLeftLine
DiagonalRightLine
Draw16
Draw1616
Draw16H
Draw8
Draw88
Draw8H
HorzLine
InverseTextOff
InverseTextOn
InvPixel
ResetPixel
ScrollDown
SetPixel
TestPixel
TotalHorzLine
TotalVertLine
VertLine
***Note: All gfx operations here write to value stored in VIDEOBUFF (default , but you can change it to your own 1024 byte buffer if you want) on the TI-86, and to the plotsscreen buffer (which is equated to VIDEOBUFF, so you can't change it) on the TI-83x***
DiagonalLeftLine
 Syntax:   DiagonalLeftLine( x, y, Length )
 Argument Storage:   ( sysbytearg0, sysbytearg1, sysbytearg2 )
 Calcs Supported:   TI-83x TI-86
 Description:  Draws a diagonal left line starting at x,y down and left for length pixels.

DiagonalRightLine
 Syntax:   DiagonalRightLine( x, y, Length )
 Argument Storage:   ( sysbytearg0, sysbytearg1, sysbytearg2 )
 Calcs Supported:   TI-83x TI-86
 Description:  Draws a diagonal right line starting at x,y down and right for length pixels.

Draw16
 Syntax:   Draw16( sprite, x, y )
 Argument Storage:   ( syspointerarg0, sysbytearg0, sysbytearg1 )
 Calcs Supported:   TI-83x TI-86
 Description:  Draws an 16-bit wide sprite (declared by a
Sprite16 or Data statement. Sprite height must be the value assigned to the SPRITE16HEIGHT system variable

Draw1616
 Syntax:   Draw1616( sprite, x, y )
 Argument Storage:   ( syspointerag0, sysbytearg0, sysbytearg1 )
 Calcs Supported:   TI-83x TI-86
 Description:  Draws an 16x16 sprite at x,y. Sets SPRITE16HEIGHT to '16' automatically.

Draw16H
 Syntax:   Draw16H( sprite, x, y, height )
 Argument Storage:   ( syspointerarg0, sysbytearg0, sysbytearg1, sprite16height )
 Calcs Supported:   TI-83x TI-86
 Description:  Specify the height in the command so you don't have to assign value to SPRITE16HEIGHT

Draw8
 Syntax:   Draw8( sprite, x, y )
 Argument Storage:   ( syspointerarg0, sysbytearg0, sysbytearg1 )
 Calcs Supported:   TI-83x TI-86
 Description:  Draws an 8-bit wide sprite (declared by a
Sprite8 or Data statement. Sprite height must be the value assigned to the SPRITE8HEIGHT system variable

Draw88
 Syntax:   Draw88( sprite, x, y )
 Argument Storage:   ( syspointerag0, sysbytearg0, sysbytearg1 )
 Calcs Supported:   TI-83x TI-86
 Description:  Draws an 8x8 sprite at x,y. Sets SPRITE8HEIGHT to '8' automatically.

Draw8H
 Syntax:   Draw8H( sprite, x, y, height )
 Argument Storage:   ( syspointerarg0, sysbytearg0, sysbytearg1, sprite8height )
 Calcs Supported:   TI-83x TI-86
 Description:  Specify the height in the command so you don't have to assign value to SPRITE8HEIGHT

HorzLine
 Syntax:   HorzLine( x, y, Length )
 Argument Storage:   ( sysbytearg0, sysbytearg1, sysbytearg2 )
 Calcs Supported:   TI-83x TI-86
 Description:  Draws a horizontal line starting at x,y right for length pixels.

InverseTextOff
 Syntax:   InverseTextOff( void )
 Argument Storage:   ( void )
 Calcs Supported:   TI-83x TI-86
 Description:  Turns off inverse text drawing.

InverseTextOn
 Syntax:   InverseTextOn( void )
 Argument Storage:   ( void )
 Calcs Supported:   TI-83x TI-86
 Description:  Turns on inverse text drawing.

InvPixel
 Syntax:   InvPixel( x, y )
 Argument Storage:   ( sysbytearg0, sysbytearg1 )
 Calcs Supported:   TI-83x TI-86
 Description:  Inverts the pixel at x,y.

ResetPixel
 Syntax:   ResetPixel( x, y )
 Argument Storage:   ( sysbytearg0, sysbytearg1 )
 Calcs Supported:   TI-83x TI-86
 Description:  Turns pixel at x,y off.

ScrollDown
 Syntax:   ScrollDown( buffer, smallbuffer )
 Argument Storage:   ( syspointerarg0, syspointerarg1 )
 Calcs Supported:   TI-83x TI-86
 Description:  Buffer must be VIDEOBUFF, or screen sized buffer created with MemSpace. Smallbuffer is a 12 or 16 byte buffer (depending on the calculator) that is copied to the top line of the screen, and the bottom line of the screen is copied into. Repeating ScrollDown with the same small buffer will create a circular scrolling background that could be stars in a shoot 'em up, etc.

SetPixel
 Syntax:   SetPixel( x, y )
 Argument Storage:   ( sysbytearg0, sysbytearg1 )
 Calcs Supported:   TI-83x TI-86
 Description:  Turns pixel at x,y on.

TestPixel
 Syntax:   TestPixel( x, y )
 Argument Storage:   ( sysbytearg0, sysbytearg1 )
 Calcs Supported:   TI-83x TI-86
 Description:  Assigns pixel status at x,y to SUCCESS. Any nonzero value indicates that the pixel is ON.

TotalHorzLine
 Syntax:   TotalHorzLine( y )
 Argument Storage:   ( sysbytearg0 )
 Calcs Supported:   TI-83x TI-86
 Description:  Draws a complete horizontal line across the screen on the specified y row.

TotalVertLine
 Syntax:   TotalVertLine( x )
 Argument Storage:   ( sysbytearg0 )
 Calcs Supported:   TI-83x TI-86
 Description:  Draws a complete vertical line down the screen on specified column.

VertLine
 Syntax:   VertLine( x, y, Length )
 Argument Storage:   ( sysbytearg0, sysbytearg1, sysbytearg2 )
 Calcs Supported:   TI-83x TI-86
 Description:  Draws a vertical line starting at x,y down for length pixels.