Fenix Manual
Fenix Manual
Command Reference
Text Commands

Delete_Text
Load_Fnt
Move_Text
Text_Height
Text_Width
Write
Write_Float
Write_Int
Write_In_Map
Write_String
Write_Var
Load_Bdf
Text_Color
Save_Fnt

Text_Color
Last Modified: May 29, 2005 11:05AM
(Any)
Description

TEXT_COLOR ( INT COLOUR )
It selects the colour which will be used to paint the texts made with functions like Write.

PARAMETERS:
INT colour: Number of colour

DESCRIPTION:
This function allows you to choose the colour of text with which the characters of the fonts will be drawn to two colours. The types of letter (fonts) of 256 colours or 16 bits already include colour information and they will not be affected by this function. The types of letter to two colours can be recovered by the functions Load_Bdf or Load_Fnt.

The texts drawn with Write and derived remember the colour selected at the moment that it was called, although the text is drawn each frame. Therefore, it is valid to call to Text_Color before drawing each one and being able to simultaneously to show in screen texts of several colours.

In case of graphs of 256 colours (8 bits), the value of colour must be a number from 0 to 255. In the opposite case (16 bits), the value is a codification of the components of the colour that changes based on the video card and graph mode. It is normal to use the function Rgb to obtain the codification of a certain colour, or use a colour obtained by a function like Map_Get_Pixel.

User Contributed Notes
Text_Color
Add Notes About Notes
There are no user contributed notes for this page.
Last updated: Mon, 30 May 2005 - 10:33:02

Manual © 2005 By Gary Moncrieff(Dazzy), Notes belong to their respective posters