Closed samreid closed 10 years ago
In RGBModel there is this code:
step: function( dt ) { if ( this.play ) { if ( dt > Constants.MAX_DT || dt <= 0 ) { dt = 1.0 / 60.0; } this.redBeam.updateAnimationFrame( dt ); this.greenBeam.updateAnimationFrame( dt ); this.blueBeam.updateAnimationFrame( dt ); } }, // step one frame, assuming 60fps manualStep: function() { this.redBeam.updateAnimationFrame( 1 / 60 ); this.greenBeam.updateAnimationFrame( 1 / 60 ); this.blueBeam.updateAnimationFrame( 1 / 60 ); },
I recommend factoring out a function stepBeams that can be called by manualStep and step.
Done. Assigning to @samreid for review
Looks great, thanks! Closing.
In RGBModel there is this code:
I recommend factoring out a function stepBeams that can be called by manualStep and step.