- This wiki is out of date, use the continuation of this wiki instead
Set text color
From FenixWiki
(Difference between revisions)
Revision as of 13:28, 26 April 2007 (edit) Sandman (Talk | contribs) ← Previous diff |
Revision as of 22:44, 27 June 2007 (edit) (undo) Sandman (Talk | contribs) m Next diff → |
||
Line 1: | Line 1: | ||
[[Category:functions]] | [[Category:functions]] | ||
- | [[Category: | + | [[Category:texts]] |
==Definition== | ==Definition== |
Revision as of 22:44, 27 June 2007
Contents |
Definition
INT set_text_color ( <WORD color> )
Sets the color of texts written after this function is called.
Parameters
WORD color | - The color to use for text. |
Returns
INT : 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