Mercurial > MadButterfly
comparison nodejs/paints.m4 @ 699:0b98bdc53215
Add binding for color changing of paint_color_t in JS
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 11 Aug 2010 17:38:44 +0800 |
parents | da12923a789a |
children | 163f0d9e6382 |
comparison
equal
deleted
inserted
replaced
698:32e1b8005403 | 699:0b98bdc53215 |
---|---|
5 (SELF, OBJ([sh], [shape], [shape_t])), 1, []), | 5 (SELF, OBJ([sh], [shape], [shape_t])), 1, []), |
6 METHOD([stroke], [xnjsmb_paint_stroke], | 6 METHOD([stroke], [xnjsmb_paint_stroke], |
7 (SELF, OBJ([sh], [shape], [shape_t])), 1, [])]) | 7 (SELF, OBJ([sh], [shape], [shape_t])), 1, [])]) |
8 | 8 |
9 STRUCT([paint_color], [paint_t], [], | 9 STRUCT([paint_color], [paint_t], [], |
10 [], | 10 [METHOD([set_color], [xnjsmb_paint_color_set_color], |
11 (SELF, NUMBER([r]), NUMBER([g]), NUMBER([b]), NUMBER([a])), | |
12 4, [])], | |
11 (([INHERIT], [paint]))) | 13 (([INHERIT], [paint]))) |
12 | 14 |
13 STRUCT([paint_image], [paint_t], [], | 15 STRUCT([paint_image], [paint_t], [], |
14 [], | 16 [], |
15 (([INHERIT], [paint]))) | 17 (([INHERIT], [paint]))) |