|red ||Red channel of the current color. |
|green ||Green channel of the current color. |
|blue ||Blue channel of the current color. |
|alpha ||Alpha channel of the current color.|
Sets the color with which text, lines and rectangles are drawn when being rendered onto an image. Values for
are between 0 and 255 - any other values have undefined results.
Definition at line 1235 of file imlib2.c.
Referenced by imlib_context_set_color_hlsa(), and imlib_context_set_color_hsva().
ctx = imlib_context_new();
ctx->color.red = red;
ctx->color.green = green;
ctx->color.blue = blue;
ctx->color.alpha = alpha;