Mercurial > MadButterfly
comparison src/paint.c @ 19:cf6d65398619
More animation demo
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sat, 02 Aug 2008 15:38:54 +0800 |
parents | 0f3baa488a62 |
children | 83d24300a992 |
comparison
equal
deleted
inserted
replaced
18:0f3baa488a62 | 19:cf6d65398619 |
---|---|
32 return NULL; | 32 return NULL; |
33 color->rdman = rdman; | 33 color->rdman = rdman; |
34 color->r = r; | 34 color->r = r; |
35 color->g = g; | 35 color->g = g; |
36 color->b = b; | 36 color->b = b; |
37 color->paint.prepare = paint_color_prepare; | 37 paint_init(&color->paint, paint_color_prepare, paint_color_free); |
38 color->paint.free = paint_color_free; | |
39 STAILQ_INIT(color->paint.members); | |
40 return (paint_t *)color; | 38 return (paint_t *)color; |
41 } | 39 } |
42 | 40 |
43 void paint_color_set(paint_t *paint, | 41 void paint_color_set(paint_t *paint, |
44 co_comp_t r, co_comp_t g, co_comp_t b) { | 42 co_comp_t r, co_comp_t g, co_comp_t b) { |