This wiki is out of date, use the continuation of this wiki instead

Set text color

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 10:11, 22 April 2007 (edit)
Woody (Talk | contribs)
(Example)
← Previous diff
Revision as of 15:17, 22 April 2007 (edit) (undo)
Woody (Talk | contribs)

Next diff →
Line 1: Line 1:
[[Category:functions]] [[Category:functions]]
 +[[Category:text]]
==Definition== ==Definition==

Revision as of 15:17, 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

Personal tools