bin/loadTweets.js
//Returns a CSS ready RGB value
Returns a CSS ready RGB value
Returns a CSS ready RGB value
function rgb(minimum, maximum, value) {
	var ratio = 2 * (value - minimum) / (maximum - minimum);
	var b = 255 * (1 - ratio);
	if (b < 0) {
		b = 0;
	}
	var r = 255 * (ratio - 1);
	if (r < 0) {
		r = 0;
	}
	var g = 255 - b - r;
	return 'rgb(' + Math.round(r) + ',' + Math.round(g) + ',' + Math.round(b) + ')';
}
function rgb ( minimum , maximum , value ) { var ratio = 2 * ( value - minimum ) / ( maximum - minimum ) ; var b = 255 * ( 1 - ratio ) ; if ( b < 0 ) { b = 0 ; } var r = 255 * ( ratio - 1 ) ; if ( r < 0 ) { r = 0 ; } var g = 255 - b - r ; return 'rgb(' + Math . round ( r ) + ',' + Math . round ( g ) + ',' + Math . round ( b ) + ')' ; }
Returns a CSS ready RGB value
Returns a CSS ready RGB value