<?php
error_reporting(E_ALL);
ini_set("display_errors",1);
//example script
require_once('WebSafeColors.inc.php');
$webSafeColors = new WebSafeColors;
//$webSafeColors->displayColorDatabase();
//$colorName = $webSafeColors->getColorName('255,255,0');
//$hexValue = $webSafeColors->getHexValue('');
//$rgbValue = $webSafeColors->getRgbValue('yellow');
//$rgbCodeFromHex = $webSafeColors->getRgbValuefromHex('#ff0053')
//$trueOfFalse = $webSafeColors->isWebSafeColor('255,255,0');
echo $webSafeColors->getClosestMatchingWebsafeColor('bluessblack');
?>
|