src/utils.js
/**
 * Disco portal animation
 * @param  {Number} delta   Time since last frame
 * @param  {Number} elapsed Total time elapsed
 * @return {Boolean}        Returns true to continue animation
 */
Disco portal animation
@param  {Number} delta   Time since last frame
@param  {Number} elapsed Total time elapsed
@return {Boolean}        Returns true to continue animation
Disco portal animation @param { Number } delta Time since last frame @param { Number } elapsed Total time elapsed @return { Boolean } Returns true to continue animation
function disco(delta, elapsed) {
  var inc = elapsed / 1000;
  this.uniforms.u_baseColor[0] = Math.sin(inc);
  this.uniforms.u_baseColor[1] = Math.sin(inc + (2 * Math.PI / 3));
  this.uniforms.u_baseColor[2] = Math.sin(inc + (4 * Math.PI / 3));
  return true;
}
function disco ( delta , elapsed ) { var inc = elapsed / 1000 ; this . uniforms . u_baseColor [ 0 ] = Math . sin ( inc ) ; this . uniforms . u_baseColor [ 1 ] = Math . sin ( inc + ( 2 * Math . PI / 3 ) ) ; this . uniforms . u_baseColor [ 2 ] = Math . sin ( inc + ( 4 * Math . PI / 3 ) ) ; return true ; }
Disco portal animation
 @param  {Number} delta   Time since last frame
 @param  {Number} elapsed Total time elapsed
 @return {Boolean}        Returns true to continue animation
Disco portal animation @param { Number } delta Time since last frame @param { Number } elapsed Total time elapsed @return { Boolean } Returns true to continue animation