WebGL (TM) Framework
 

multiFace Library Method

Short Description: Creates MultiFace Transition

Signature: taccgl.multiFace (el)
Class: taccgl Class
 

This method can be specified as kind parameter kind when creating a new transition (see Transition Kind) to animate a 3D object having multiple faces. The created transition object a then belongs to the taccglMultiFace Class.

Examples

var a=taccgl.actor("pgMiddleColumnTable").showAfter().start();
var a=taccgl.actor("LeftcolumnDown",taccgl.multiFace); a.depth(a.w);
a.newFace(0,0,0, 1,0,0, 0,1,0, 1,1,0);
a.newFace(1,0,0, 1,0,1, 1,1,0, 1,1,1);
a.newFace(0,0,0, 0,0,1, 0,1,0, 0,1,1); a.blend(0,0); a.color("brown");
a.to(a.x0,a.y0,-a.w).start();
a.cont().rotateMiddle(0,0,1).start().cont().rotateMiddle(0,1,0).start().cont().rotateMiddle(1,0,0).start()
.cont().flyHome().start();
RUN

WebGL™ is a trademark of the Khronos Group Inc.

Next Page:taccgl.dddBox - Creates dddBox Transition
Previous Page: taccgl.flexiBorder - Creates FlexiBorder Transition