Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dtk_get_color(3) [debian man page]

DTK_GET_COLOR(3)						Draw Toolkit manual						  DTK_GET_COLOR(3)

NAME
dtk_get_color - provides predefined set of colors SYNOPSIS
#include <dtk_colors.h> const float* dtk_get_color(unsigned int ind); DESCRIPTION
dtk_get_color() returns the ind-th color in a predefined palette of colors. The returned value in a pointer to a array of 4 float repre- senting an RGBA color. For more convenient usage, prefer the following macros that call dtk_get_color() with the correct argument: dtk_white dtk_black dtk_yellow dtk_orange dtk_blue dtk_green dtk_red dtk_magenta dtk_cyan dtk_butter_light dtk_butter_med dtk_butter_dark dtk_orange_light dtk_orange_med dtk_orange_dark dtk_chocolate_light dtk_chocolate_med dtk_chocolate_dark dtk_chameleon_light dtk_chameleon_med dtk_chameleon_dark dtk_skyblue_light dtk_skyblue_med dtk_skyblue_dark dtk_plum_light dtk_plum_med dtk_plum_dark dtk_scarletred_light dtk_scarletred_med dtk_scarletred_dark dtk_aluminium_light dtk_aluminium_med dtk_aluminium_dark dtk_aluminium2_light dtk_aluminium2_med dtk_aluminium2_dark RETURN VALUE
The pointer to the RGBA value of the color if ndP refers to correct value, NULL otherwise. EPFL
2010 DTK_GET_COLOR(3)

Check Out this Related Man Page

DTK_CREATE_RECTANGLE_2P(3)					Draw Toolkit manual					DTK_CREATE_RECTANGLE_2P(3)

NAME
dtk_create_triangle_2p, dtk_create_rectangle_hw - Create and modify rectangular shapes SYNOPSIS
#include <drawtk.h> dtk_hshape dtk_create_rectangle_2p(dtk_hshape shp, float p1_x, float p1_y, float p2_x, float p2_y, int filled, const float *color); dtk_hshape dtk_create_rectangle_hw(dtk_hshape shp, float cx, float cy, float h, float w, int filled, const float *color); DESCRIPTION
dtk_create_rectangle_2p() creates a rectangle whose the opposing corners are located at (p1_x,p1_y) and (p2_x,p2_y). dtk_create_rectangle_hw() creates a rectangle with height h and width w and with its center located at (cx,cy) in the original frame. shp, filled and color have the same usage and meaning as for other shape creation function: * shp can be used to modify a previously created shape. If it is non-null, the handle will be used to modify the shape referenced by shp: no new shape is created and the returned value is ensured to be shp in case of success, NULL otherwise. If shp is NULL, the function will attempt to create a new shape. * filled is set to 0 if the described shape should be a continuous line or a non-null value if the shape is supposed to be filled polygon. * color should point to a 4 float array containing a normalized RGBA value (i.e. each component is between 0.0 and 1.0). RETURN VALUE
In case of success these functions return the handle to the newly created or modified shape. If the shp argument is non-null, the handle returned is the same value. In case of error, NULL is returned. SEE ALSO
dtk_destroy_shape(3) EPFL
2011 DTK_CREATE_RECTANGLE_2P(3)
Man Page