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

Set text color

From FenixWiki

Revision as of 13:28, 26 April 2007 by Sandman (Talk | contribs)
Jump to: navigation, search


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

Used in example: write(), rgb()

Personal tools