Returns the normalized HSL color described by the ImagickPixel object, with each of the three values as floating point numbers between 0.0 and 1.0.
The result of getHSL for the color 'rgb(90%, 10%, 10%)' is:
hue : 0
saturation : 0.80001220740379
luminosity : 0.50000762951095
Returns the normalized HSL color described by the ImagickPixel object, with each of the three values as floating point numbers between 0.0 and 1.0.
        $colorString = 'rgb(90%, 10%, 10%)';

        $output = "The result of getHSL for the color '$colorString' is:
"; $color = new \ImagickPixel($colorString); $colorInfo = $color->getHSL(); foreach ($colorInfo as $key => $value) { $output .= "$key : $value
"; } return $output;