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:04, 22 April 2007 (edit)
Woody (Talk | contribs)

← Previous diff
Revision as of 10:04, 22 April 2007 (edit) (undo)
Woody (Talk | contribs)
(Example)
Next diff →
Line 28: Line 28:
green=255; green=255;
blue=0; blue=0;
 +
Begin Begin
- set_text_color([[rgb]](red,green,blue));+ set_text_color(rgb(red,green,blue));
Loop Loop
- [[write]](0,1,1,0,"Mijn potlood is bruin");+ write(0,1,1,0,"Mijn potlood is bruin");
frame; frame;

Revision as of 10:04, 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));

    Loop
  
        write(0,1,1,0,"Mijn potlood is bruin");
        
        frame;
    End
End

Personal tools