1DTK_GET_COLOR(3) Draw Toolkit manual DTK_GET_COLOR(3)
2
3
4
6 dtk_get_color - provides predefined set of colors
7
9 #include <dtk_colors.h>
10
11 const float* dtk_get_color(unsigned int ind);
12
14 dtk_get_color() returns the ind-th color in a predefined palette of
15 colors. The returned value in a pointer to a array of 4 float repreā
16 senting an RGBA color.
17
18 For more convenient usage, prefer the following macros that call
19 dtk_get_color() with the correct argument:
20 dtk_white
21 dtk_black
22 dtk_yellow
23 dtk_orange
24 dtk_blue
25 dtk_green
26 dtk_red
27 dtk_magenta
28 dtk_cyan
29 dtk_butter_light
30 dtk_butter_med
31 dtk_butter_dark
32 dtk_orange_light
33 dtk_orange_med
34 dtk_orange_dark
35 dtk_chocolate_light
36 dtk_chocolate_med
37 dtk_chocolate_dark
38 dtk_chameleon_light
39 dtk_chameleon_med
40 dtk_chameleon_dark
41 dtk_skyblue_light
42 dtk_skyblue_med
43 dtk_skyblue_dark
44 dtk_plum_light
45 dtk_plum_med
46 dtk_plum_dark
47 dtk_scarletred_light
48 dtk_scarletred_med
49 dtk_scarletred_dark
50 dtk_aluminium_light
51 dtk_aluminium_med
52 dtk_aluminium_dark
53 dtk_aluminium2_light
54 dtk_aluminium2_med
55 dtk_aluminium2_dark
56
58 The pointer to the RGBA value of the color if ndP refers to correct
59 value, NULL otherwise.
60
61
62
63
64
65EPFL 2010 DTK_GET_COLOR(3)