- This wiki is out of date, use the continuation of this wiki instead
Set text color
From FenixWiki
(Difference between revisions)
| Revision as of 10:04, 22 April 2007 (edit) Woody (Talk | contribs) (→Example) ← Previous diff |
Revision as of 10:11, 22 April 2007 (edit) (undo) Woody (Talk | contribs) (→Example) Next diff → |
||
| Line 33: | Line 33: | ||
| set_text_color(rgb(red,green,blue)); | 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 | ||
| + | |||
| Loop | Loop | ||
| - | write(0,1,1,0,"Mijn potlood is bruin"); | ||
| - | |||
| frame; | frame; | ||
| End | End | ||
Revision as of 10:11, 22 April 2007
Contents |
Definition
INT set_text_color ( <INT color> )
Sets the color of the default font and possibly TTF fonts as well.
Parameters
| INT color | - The color to use for text. |
Returns
INT : Returns 1 if successful and 0 if failed.
Example
Program awesome;
Global
red=0;
green=255;
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
Loop
frame;
End
End
