comparison src/paint.c @ 52:59a295651480

Add action mb_chgcolor_t to change color of paints.
author Thinker K.F. Li <thinker@branda.to>
date Sat, 09 Aug 2008 22:16:23 +0800
parents 56f592f56ff7
children 01ed2bc37eed
comparison
equal deleted inserted replaced
51:5f5bd3ac9316 52:59a295651480
49 49
50 color->r = r; 50 color->r = r;
51 color->g = g; 51 color->g = g;
52 color->b = b; 52 color->b = b;
53 color->a = a; 53 color->a = a;
54 }
55
56 void paint_color_get(paint_t *paint,
57 co_comp_t *r, co_comp_t *g,
58 co_comp_t *b, co_comp_t *a) {
59 paint_color_t *color = (paint_color_t *)paint;
60
61 *r = color->r;
62 *g = color->g;
63 *b = color->b;
64 *a = color->a;
54 } 65 }
55 66
56 /*! \brief Linear gradient. 67 /*! \brief Linear gradient.
57 */ 68 */
58 typedef struct _paint_linear { 69 typedef struct _paint_linear {