HTML5 Canvas 3D WebGL (TM) javaScript Library
 

selFront Library Method

Short Description: Select Front Face

Signature: box.selFront ()
Class: taccglDddBox Class
 

Selects the front face.Subsequent blend, color, ... and map operations work on the selected face.

Examples

var a=taccgl.actor("testimg",taccgl.dddBox); a.depth(a.h);
var b=taccgl.a("testimg2").paint(2);
a.selFront().blend(0,1);
a.rotateMiddle(0,1,0).rotatePart(0,Math.PI/5).start().cont().
rotateMiddle(0,0,1).dur(4).start().cont().rotateMiddle(0,1,0).dur(4).start().cont().rotateMiddle(1,0,0).dur(4).start();
RUN

WebGL™ is a trademark of the Khronos Group Inc.

Next Page:taccglDddBox.selRight - Select Right Face
Previous Page: taccglDddBox Class
Please Add a Comment or Question, click here!