src/AppStates.js
/**
 * Fades the screen from one color to another.
 *
 * @param {Number} maxT the maximum time that the transition should take.
 * @param {Pixel32} from starting color.
 * @param {Pixel32} to ending color.
 * @returns {ScreenTransitionFade}
 */
Fades the screen from one color to another.
@param {Number} maxT the maximum time that the transition should take.
@param {Pixel32} from starting color.
@param {Pixel32} to ending color.
Fades the screen from one color to another . @param { Number } maxT the maximum time that the transition should take . @param { Pixel32 } from starting color . @param { Pixel32 } to ending color .
function ScreenTransitionFade(maxT, from, to) {
	this.maxT = maxT;
	this.from = from;
	this.to = to;
	this.time = 0;
	this.isDone = false;
}
function ScreenTransitionFade ( maxT , from , to ) { this . maxT = maxT ; this . from = from ; this . to = to ; this . time = 0 ; this . isDone = false ; }
Fades the screen from one color to another.
Fades the screen from one color to another .