lib/toxi/processing/ToxiclibsSupport.js
function(iterator, shapeID, closed){
		//if first param wasnt passed in as a pjs Iterator, make it one
		if(iterator.hasNext === undefined || iterator.next === undefined){
			iterator = new this.app.ObjectIterator( iterator );
		}
		this.gfx.beginShape(shapeID);
		for(var v  = void(0); iterator.hasNext() && ((v  = iterator.next()) || true);){
			this.gfx.vertex(v.x,v.y);
		}
		/*var i=0,
			len = points.length;
		for(i=0;i<len;i++){
			var v = points[i];
			this.gfx.vertex(v.x,v.y);
		}*/
		if(closed){
			this.gfx.endShape(this.app.CLOSE);
		} else {
			this.gfx.endShape();
		}
	}
function(iterator, shapeID, closed){
		//if first param wasnt passed in as a pjs Iterator, make it one
		if(iterator.hasNext === undefined || iterator.next === undefined){
			iterator = new this.app.ObjectIterator( iterator );
		}
		this.gfx.beginShape(shapeID);
		for(var v  = void(0); iterator.hasNext() && ((v  = iterator.next()) || true);){
			this.gfx.vertex(v.x,v.y);
		}
		/*var i=0,
			len = points.length;
		for(i=0;i<len;i++){
			var v = points[i];
			this.gfx.vertex(v.x,v.y);
		}*/
		if(closed){
			this.gfx.endShape(this.app.CLOSE);
		} else {
			this.gfx.endShape();
		}
	}
function ( iterator , shapeID , closed ) { //if first param wasnt passed in as a pjs Iterator, make it one if ( iterator . hasNext === undefined || iterator . next === undefined ) { iterator = new this . app . ObjectIterator ( iterator ) ; } this . gfx . beginShape ( shapeID ) ; for ( var v = void ( 0 ) ; iterator . hasNext ( ) && ( ( v = iterator . next ( ) ) || true ) ; ) { this . gfx . vertex ( v . x , v . y ) ; } /*var i=0,
			len = points.length;
		for(i=0;i<len;i++){
			var v = points[i];
			this.gfx.vertex(v.x,v.y);
		}*/ if ( closed ) { this . gfx . endShape ( this . app . CLOSE ) ; } else { this . gfx . endShape ( ) ; } }
Processes the 2D vertices from a Processing.js Iterator object
@params {Iterator} iterator
@params {Number} shapeID
@params {Boolean} closed
Processes the 2D vertices from a Processing . js Iterator object