Location: PHPKode > scripts > Graidle > graidle/graidle_color.ext.php
<?php
class Color extends Graidle
{
		function Color()
		{
			$this->color = array(
			"green,127,180,57",
			"blue,22,86,139",
			"red,237,24,70",
			"yellow,255,234,130",
			"magenta,245,152,170",
			"cyan,113,206,234",
			"grey,169,171,159",
			"forestgreen,34, 139, 34",
			"midnightblue,25, 25, 112",
			"firebrick,178,34,34",
			"gold,255, 215, 0",
			"pink,255,20,147",
			"lavender,230, 230, 250",
			"orchid,218,112,214",
			"olive,128, 128, 0",
			"orange,255,165,0",
			"coral,255,127,80",
			"brown,165,42,42",
			"blanchedalmond,255,235,205",
			"burlywood,222,184,135",
			"deepskyblue,0,191,255",
			"dodgerblue,30,144,255",					
			"fuchsia,255, 0, 255",
			"gainsboro,220, 220, 220",			
			"honeydew,240, 255, 240",
			"indigo,75, 0, 130",
			"khaki,240, 230, 140",			
			"lavenderblush,255, 240, 245",
			"lawngreen,124, 252,  0",
			"lemonchiffon,255, 250, 205",
			"maroon,128, 0, 0",			
			"mintcream,245, 255, 250",
			"mistyrose,255, 228, 225",
			"moccasin,255, 228, 181",
			"navajowhite,255, 222, 173",
			"navy,0, 0, 128",
			"oldlace,253, 245, 230",
			"papayawhip,255,239,213",
			"peachpuff,255,218,185",
			"peru,205,133,63",			
			"plum,221,160,221",
			"powderblue,176,224,230",
			"purple,128,0,128",
			"saddlebrown,139,69,19",
			"salmon,250,128,114",
			"seashell,255,245,238",
			"sienna,160,82,45",
			"skyblue,135,206,235",
			"springgreen,0,255,127",
			"tan,210,180,140",
			"teal,0,128,128",);
		}
		function hex2rgb($HEXcolor)
		{
			if($HEXcolor{0}=='#')	$HEXcolor=substr($HEXcolor,1);
			$HEXcolor=substr($HEXcolor,0,6);
			for($i=$p=0;$i < strlen($HEXcolor)/2;$i++,$p+=2)	$rgb[$i]=hexdec(substr($HEXcolor,$p,2));
			return $rgb;
		}
}
?>
Return current item: Graidle