Fenix Manual
Fenix Manual
Command Reference
Drawing Commands

Delete_Draw
Draw_Box
Draw_Circle
Draw_Curve
Draw_Fcircle
Draw_Line
Draw_Rect
Drawing_Alpha
Drawing_Color
Drawing_Map
Drawing_Stipple
Drawing_Z
Move_Draw

Drawing_Color
Last Modified: May 29, 2005 22:05PM
(Any)
Description

DRAWING_COLOR ( INT COLOUR )
Selects the colour with which the primitive graphs will be drawn with functions like Draw_Line.

PARAMETERS:
INT colour: Number of colour

DESCRIPTION:
This function allows you to select the colour with which the primitive graphs will be drawn (routines that begin by DRAW...) so like the graphs of two colours created by New_Map.

In the case of graph modes of 256 colours (8 bits), the value of colour must be a number (interval 0-255).

In the case of graph modes of 16 bits, the value is a combination of the components of the colour according to the video card and the graph mode.

It is normal to use the function Rgb to obtain the combination of a certain colour, or use a colour obtained by a function like Map_Get_Pixel.

However, it is possible to use Drawing_Map to draw in a 8 bit graph even in 16 bits. In both cases, the primitive graphs will use a colour approximated to the specified by this function, it is equivalent to use the function Find_Nearest_Color.

In the opposite case, it is not valid to draw over a 16 bit graph in 8 bits, because the config of video card sets the exact format of the colour in 16 bits.

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

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