HTML5 Canvas 3D WebGL (TM) javaScript Library
 

nparts Library Method

Short Description: Number of triangles to approximate object

Signature: f.nparts (n)
Class: taccglFlexiBorder Class
 

The flexible border object is approximated by triangles or rectangles. With nparts the number can be defined. Default is 100.

Examples

var a=taccgl.actor("testimg",taccgl.flexiBorder).Circle1(); a.resize(null,null,a.h,a.h).flyOut(a.x+(a.w-a.h)/2,a.y,0).nparts(2).start();
RUN
var a=taccgl.actor("testimg",taccgl.flexiBorder).Circle1(); a.resize(null,null,a.h,a.h).flyOut(a.x+(a.w-a.h)/2,a.y,0).nparts(4).start();
RUN
var a=taccgl.actor("testimg",taccgl.flexiBorder).Circle1(); a.resize(null,null,a.h,a.h).flyOut(a.x+(a.w-a.h)/2,a.y,0).nparts(10).start();
RUN
var a=taccgl.actor("testimg",taccgl.flexiBorder).Circle1(); a.resize(null,null,a.h,a.h).flyOut(a.x+(a.w-a.h)/2,a.y,0).nparts(20).start();
RUN
var a=taccgl.actor("testimg",taccgl.flexiBorder).Circle1(); a.resize(null,null,a.h,a.h).flyOut(a.x+(a.w-a.h)/2,a.y,0).nparts(50).start();
RUN
var a=taccgl.actor("testimg",taccgl.flexiBorder).Circle1(); a.resize(null,null,a.h,a.h).flyOut(a.x+(a.w-a.h)/2,a.y,0).nparts(100).start();
RUN

WebGL™ is a trademark of the Khronos Group Inc.

Next Page:taccglFlexiBorder.startH - Approximate Horizontally and start
Previous Page: taccglFlexiBorder Class