Property | Value |
---|---|
Hex Value | $13 |
Categories | |
Localizations |
|
pxl-Test(
Overview
Returns 1 if pixel (row
, column
) is on, 0 if it is off;
Availability: Token available everywhere.
Syntax
pxl-Test(row,column)
Arguments
Name | Type | Optional |
---|---|---|
row | ||
column |
Location
2nd, draw, POINTS
, 7:pxl-Test(
Description
The pxl-Test( command is used to test a pixel at the given (Y,X) coordinates of the graph screen, to see whether it is on or off. One is returned if the pixel is on and zero is returned if the pixel is off. 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). This command's coordinates are independent of the window settings.
You can store the result of pxl-Test( to a variable for later use, or use the command in a conditional or loop.
:Pxl-On(25,25
:If pxl-Test(25,25
:Disp "Pixel turned on!
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 (Horiz)
Related Commands
Source: parts of this page were written by the following TI|BD contributors: Battlesquid, burr, DarkerLine, GoVegan.
History
Calculator | OS Version | Description |
---|---|---|
TI-82 | 1.0 | Added |