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

Get text color

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 23:58, 23 July 2007 (edit)
85.144.194.29 (Talk)
(shifting the return text around)
← Previous diff
Revision as of 00:43, 24 July 2007 (edit) (undo)
Rincewind (Talk | contribs)
(return format...fine sandman, fine)
Next diff →
Line 11: Line 11:
== Returns == == Returns ==
-Returns the [[color]] text will be written in. +'''INT''': [[color]] the text will be written in.
== Notes == == Notes ==

Revision as of 00:43, 24 July 2007


Contents

Definition

INT get_text_color()

Gets the current text color (the color where texts will be written in).

Parameters

None.

Returns

INT: color the text will be written in.

Notes

None.

Errors

<If someone knows, please edit!>

Example

Program test;
Global
    My_text;
    Text_color;
Begin
    Set_text_color(120);
    Write(0,320/2,200/2,4,"The color of this text is:");
	
    Text_color=Get_text_color();
    Write_int(0,320/2+100,200/2,4,offset Text_color);

    Loop
        Frame;
    End
End

Used in example: set_text_color(), write(), write_int()

This will result in something like:
Image:get_text_color.png

Personal tools