Home      Downloads             Documentation      FAQ     

Documentation>ETP-Basic reference>Using grayscale

 

Using grayscale

Texas Intsruments'® Calculators are not made to display grayscale graphics. But ETP-Basic contains a library that allows the calculator to display them.

First, you must set the grayscale mode on. So simple :

GrayOn

This command allows the calculator to go in grayscale mode. After, you must act as if there were to planes : a dark one and a light one.

To choose the dark plane :

DarkPlane

... And the light one :

LightPlane

You can now use classic functions to display things.

Example :

GrayOn
DarkPlane
Locate 1,10,"It's Dark !",4
Locate 1,20,"It's also Dark !",4
LightPlane
Locate 20,40,"This is Light !",4
Locate 20,50,"So it is !",4

And so on, everything written after DarkPlane to LightPlane will be on the dark plane, and dark on the screen.

Important Note : For the PutTile function, you don't need to change the plane, it is autpomatically done. But you have to activate grayscale mode, with the instruction GrayOn, otherwise it will be in black and white.

Before quitting your program, the calculator must be set back in normal mode. So you must stop grayscales by typing :

GrayOff

And the black ?

To have a black element, you must activate pixels in both planes, like that :

DarkPlane
Locate 1,10,"This is black",4
LightPlane
Locate 1,10,"This is black",4

 

Documentation>ETP-Basic reference>Using grayscale

     
    About ETP Contact Us