walltaker_for_WallpaperEngine/script.js
//takes WallpaperEngine color string and converts it into (usable) rgb/rgba format

takes WallpaperEngine color string and converts it into (usable) rgb/rgba format
takes WallpaperEngine color string and converts it into ( usable ) rgb / rgba format
function GetRGBColor(customColor){
	var temp = customColor.split(' ');
			var rgb = temp.slice(0, 3);
            rgb = rgb.map(function _cap(c) {
                return Math.ceil(c * 255);
            });
			var customColorAsCSS = "";
			if(temp.length > 3)
			customColorAsCSS = 'rgba(' + rgb+','+temp[3]+ ')';
			else
			customColorAsCSS = 'rgb(' + rgb+')';
			return customColorAsCSS;
}
function GetRGBColor ( customColor ) { var temp = customColor . split ( ' ' ) ; var rgb = temp . slice ( 0 , 3 ) ; rgb = rgb . map ( function _cap ( c ) { return Math . ceil ( c * 255 ) ; } ) ; var customColorAsCSS = "" ; if ( temp . length > 3 ) customColorAsCSS = 'rgba(' + rgb + ',' + temp [ 3 ] + ')' ; else customColorAsCSS = 'rgb(' + rgb + ')' ; return customColorAsCSS ; }
takes WallpaperEngine color string and converts it into (usable) rgb/rgba format
takes WallpaperEngine color string and converts it into ( usable ) rgb / rgba format
//split string into values
 //cap rgb values at 255
 //length is 3 for rgb values
