TI-BASIC:Pxl Change

From Learn @ Cemetech
Jump to navigationJump to search

PXL-CHANGE.GIF

Command Summary

Toggles a pixel on the graph screen.

Command Syntax

Pxl-Change(row,column)

Menu Location

While editing a program press:

  1. 2nd PRGM to enter the DRAW menu
  2. RIGHT to enter the POINTS menu
  3. 6 to choose Pxl-Change(, or use arrows

Calculator Compatibility

TI-83/84/+/SE

Token Size

1 byte

The Pxl-Change( command is used to toggle the pixel at the given (Y,X) coordinates. If the pixel is on, it will be turned off and vice versa. Please note that the coordinates are switched around so that the row comes first and then the column -- it's (Y,X) instead of (X,Y) like the Pt_Change( command.

In addition to being easier to use because it is not affected by the window settings (meaning you don't have to set them when using the command), Pxl-Change( is faster than its equivalent Pt-Change( command, so it should generally be used instead whenever possible.

Error Conditions

  • ERR:DOMAIN is triggered if the coordinates are not whole numbers or not in the right range ([0..62] for row, [0..94] for column). These bounds are also affected by split screen mode.

Related Commands