Canvas Animation Library
 

map1 Library Method

Short Description: Animate mapped rectangular portion of texture canvas

Signature: t.map1 (s,t,w,h)
Group: Texture
Class: transition Class
 

This method is used to animate the texture. The parameters have the same meaining as with map. map1 defines the end of the animation, while map defines the begin of the animation.

Examples

var a=taccgl.actor("testimg"); a.map1(a.x,a.y,a.w,a.h/2); a.start(); RUN
var a=taccgl.a("pgMiddleColumnTable").paint(); var b=taccgl.actor("testimg");
b.map(a.x,a.y,a.w,b.h).map1(a.x,a.y+a.h-b.h,a.w,b.h).dur(4).to(b.x,b.y,2000).start();
RUN
var a=taccgl.a("testimg").paint(); taccgl.actor("pgMiddleColumnTable").map1(a.x,a.y,a.w,a.h).start(); RUN
Next Page:transition.mapA - Set end point of texture animation to start point
Previous Page: transition.map - Map rectangular portion of texture canvas