diff 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
line wrap: on
line diff
--- a/nodejs/paints.m4	Wed Aug 11 17:37:39 2010 +0800
+++ b/nodejs/paints.m4	Wed Aug 11 17:38:44 2010 +0800
@@ -7,7 +7,9 @@
 	       (SELF, OBJ([sh], [shape], [shape_t])), 1, [])])
 
 STRUCT([paint_color], [paint_t], [],
-       [],
+       [METHOD([set_color], [xnjsmb_paint_color_set_color],
+       	       (SELF, NUMBER([r]), NUMBER([g]), NUMBER([b]), NUMBER([a])),
+	       4, [])],
        (([INHERIT], [paint])))
 
 STRUCT([paint_image], [paint_t], [],