webapp/src/main/webapp/lib/commons.js
/**
 * Prepares the 2D context of a canvas for painting symbols. Makes the
 * background blue and the foreground white.
 * 
 * @param canvas -
 *            the canvas in question
 * @returns the context
 * @since 0.2.0
 */
Prepares the 2D context of a canvas for painting symbols. Makes the
background blue and the foreground white.

@param canvas
the canvas in question
@returns the context
@since 0.2.0
Prepares the 2D context of a canvas for painting symbols . Makes the background blue and the foreground white . @param canvas the canvas in question @returns the context @since 0 . 2 . 0
function prepare2DContextOfCanvas(canvas) {
	var ctx = canvas.getContext('2d');
	ctx.fillStyle = "#26215D";
	ctx.fillRect(0, 0, canvas.width, canvas.height);
	return ctx;
}
function prepare2DContextOfCanvas ( canvas ) { var ctx = canvas . getContext ( '2d' ) ; ctx . fillStyle = "#26215D" ; ctx . fillRect ( 0 , 0 , canvas . width , canvas . height ) ; return ctx ; }
Prepares the 2D context of a canvas for painting symbols.
Prepares the 2D context of a canvas for painting symbols .