# HG changeset patch # User wycc # Date 1300892933 -28800 # Node ID 7ee0658025f3bd6421de2b0757b0765289ff3315 # Parent 9a585df24e5204302a9ef688be09fced1550a4b8 Support opacity tween for the primitives. diff -r 9a585df24e52 -r 7ee0658025f3 nodejs/mbapp.js --- 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 {