Source: shared/color.js

/* 
* To use this with require.js AND the node.js module system (on server and client side).
* see https://github.com/jrburke/amdefine
*/
if (typeof define !== 'function') { var define = require('amdefine')(module); }


/**
 * Here you can find some useful functions for working with colors.
 * This is not multis core functionality but might be convenient to use.
 * @module
 */
define(function(require, exports, module) {
	'use strict';

	/**
	 * @returns {string} a random color string using the format '#RRGGBB'
	 */
	exports.random = function () {
		var color = 'ffff' + (Math.random()*0xFFFFFF<<0).toString(16);
		color = '#' + color.slice(-6);
		return color;
	};

	return exports;

});