Converts colors from RGB to hue-luminance-saturation (HLS) format
#include <WinAPIGdi.au3>
_WinAPI_ColorRGBToHLS ( $iRGB, ByRef $iHue, ByRef $iLuminance, ByRef $iSaturation )
$iRGB | RGB color. |
$iHue | Returns HLS hue value. |
$iLuminance | Returns HLS luminance value. |
$iSaturation | Returns HLS saturation value. |
Search ColorRGBToHLS in MSDN Library.
#include <WinAPIGdi.au3>
Local $iHue, $iLuminance, $iSaturation
_WinAPI_ColorRGBToHLS(0xFF8000, $iHue, $iLuminance, $iSaturation)
ConsoleWrite('Hue: ' & $iHue & @CRLF)
ConsoleWrite('Sat: ' & $iSaturation & @CRLF)
ConsoleWrite('Lum: ' & $iLuminance & @CRLF)