Home > PHP > Function > > ImagickPixel::getHSL()

ImagickPixel::getHSL()

ImagickPixel::getHSL - Returns the normalized HSL color of the ImagickPixel object

Syntax

array ImagickPixel::getHSL ()

Arguments

-

Description

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.

Version

PHP PECL imagick 2.0.0

Return value

Returns the HSL value in an array with the keys "hue", "saturation", and "luminosity". Throws ImagickPixelException on failure.