Chapter 8: Draw Instructions 204
Turning On and Off Pixels with
Turning On and Off Pixels with Turning On and Off Pixels with
Turning On and Off Pixels with Pxl
PxlPxl
Pxl-
--
-On(
On(On(
On( and
and and
and Pxl
PxlPxl
Pxl-
--
-Off(
Off(Off(
Off(
Pxl-On( (pixel on) turns on the pixel at (row,column), where row is an integer between 0 and
62 and column is an integer between 0 and 94.
Pxl-Off( turns the pixel off. Pxl-Change( toggles the pixel on and off.
Pxl-On(row,column)
Pxl-Off(row,column )
Pxl-Change(row,column)
Using
Using Using
Using pxl
pxlpxl
pxl-
--
-Test(
Test(Test (
Test(
pxl-Test( (pixel test) returns 1 if the pixel at (row,column) is turned on or 0 if the pixel is
turned off on the current graph. row must be an integer between 0 and 62. column must be
an integer between 0 and 94.
pxl-Test(row,column)