Get the index of the color which has the hue, white and blackness in PHP
Description
The following code shows how to get the index of the color which has the hue, white and blackness.
Example
<?php//from w ww .j ava 2 s.c o m
$im = imagecreatefromgif('./test.gif');
echo 'HWB: ' . imagecolorclosesthwb($im, 116, 115, 152);
imagedestroy($im);
?>
The code above generates the following result.