changeset 1382:7ee0658025f3

Support opacity tween for the primitives.
author wycc
date Wed, 23 Mar 2011 23:08:53 +0800
parents 9a585df24e52
children bdacbdeb4447
files nodejs/mbapp.js
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/nodejs/mbapp.js	Wed Mar 23 23:02:36 2011 +0800
+++ b/nodejs/mbapp.js	Wed Mar 23 23:08:53 2011 +0800
@@ -198,7 +198,12 @@
     var tx = src.tx*p+dest.tx*p1;
     var ty = src.ty*p+dest.ty*p1;
     var mt = [1, 0, -src.tx, 0, 1, -src.ty];
+    var opacity;
     var ms;
+
+    opacity = src.opacity*p + src.opacity*p1;
+    coord.opacity = opacity;
+
     if (r == 0) {
         m = mt;
     } else {