Draw yellow text at the same or a new position
Listing 5 draws "HELLO WORLD"
In yellow text
At the location specified by the x and y coordinate variables.
Listing 5. Draw yellow text at the same or a new position.
textout_ex(
screen,//Specify bitmap on the screen
font,//Use a default font
"HELLO WORLD",//Specify the text to display
x,//x-coordinate for text
y,//y-coordinate for text
makecol(255,255,0),//Color text yellow
-1 );//Transparent text background.
|