Draw path animation

21 views
Skip to first unread message

GC

unread,
Nov 25, 2013, 2:21:32 PM11/25/13
to caa...@googlegroups.com
Hello,

I would like to dynamically draw a path, Something like this http://jsfiddle.net/YSmDH/ but in CAAT.

Can anyone give me an idea on how to do it or what strategy to follow?


I thought about overriding the paint method, but don't know how to continue.

var path = parser.parsePath(...);
var pa = new CAAT.PathActor();
pa.paint = function(director,time) {
                        for( var i=0; i < path.pathSegments.length; i++ ) {

                        }

                }

Any help would be appreciated,

Thanks
Reply all
Reply to author
Forward
0 new messages