- This wiki is out of date, use the continuation of this wiki instead
Set text color
From FenixWiki
Contents |
Definition
INT Set_Text_Color ( <INT color> )
Sets the color of texts written after this function is called.
Parameters
| INT color | - The color to use for text. |
Returns
INT : Returns true if successful and false if failed. (Needs confirmation.)
Example
Program awesome;
Global
byte red=0;
byte green=255;
byte blue=0;
Begin
set_text_color(rgb(red,green,blue));
write(0,1,1,0,"Mijn potlood is bruin"); //this text will be green as an Irishman's ejecta
set_text_color(rgb(255,0,0));
write(0,1,11,0,"Je moeder"); //this text will be red
Loop
frame;
End
End
Used in example: write()
