dist/claygl.es.js
function(out) {
        var amount = Math.min(this._particlePool.length, this.amount);

        var particle;
        for (var i = 0; i < amount; i++) {
            particle = this._particlePool.pop();
            // Initialize particle status
            if (this.position) {
                this.position.get(particle.position);
            }
            if (this.rotation) {
                this.rotation.get(particle.rotation);
            }
            if (this.velocity) {
                this.velocity.get(particle.velocity);
            }
            if (this.angularVelocity) {
                this.angularVelocity.get(particle.angularVelocity);
            }
            if (this.life) {
                particle.life = this.life.get();
            }
            if (this.spriteSize) {
                particle.spriteSize = this.spriteSize.get();
            }
            if (this.weight) {
                particle.weight = this.weight.get();
            }
            particle.age = 0;

            out.push(particle);
        }
    }
function(out) {
        var amount = Math.min(this._particlePool.length, this.amount);

        var particle;
        for (var i = 0; i < amount; i++) {
            particle = this._particlePool.pop();
            // Initialize particle status
            if (this.position) {
                this.position.get(particle.position);
            }
            if (this.rotation) {
                this.rotation.get(particle.rotation);
            }
            if (this.velocity) {
                this.velocity.get(particle.velocity);
            }
            if (this.angularVelocity) {
                this.angularVelocity.get(particle.angularVelocity);
            }
            if (this.life) {
                particle.life = this.life.get();
            }
            if (this.spriteSize) {
                particle.spriteSize = this.spriteSize.get();
            }
            if (this.weight) {
                particle.weight = this.weight.get();
            }
            particle.age = 0;

            out.push(particle);
        }
    }
function ( out ) { var amount = Math . min ( this . _particlePool . length , this . amount ) ; var particle ; for ( var i = 0 ; i < amount ; i ++ ) { particle = this . _particlePool . pop ( ) ; // Initialize particle status if ( this . position ) { this . position . get ( particle . position ) ; } if ( this . rotation ) { this . rotation . get ( particle . rotation ) ; } if ( this . velocity ) { this . velocity . get ( particle . velocity ) ; } if ( this . angularVelocity ) { this . angularVelocity . get ( particle . angularVelocity ) ; } if ( this . life ) { particle . life = this . life . get ( ) ; } if ( this . spriteSize ) { particle . spriteSize = this . spriteSize . get ( ) ; } if ( this . weight ) { particle . weight = this . weight . get ( ) ; } particle . age = 0 ; out . push ( particle ) ; } }
Emitter number of particles and push them to a given particle list. Emmit number is defined by amount property
@param  {Array.<clay.particle.Particle>} out
Emitter number of particles and push them to a given particle list . Emmit number is defined by amount property