DECLARE Long ColorHLSToRGB in "Shlwapi.dll" ; short wHue, short wLuminance, short wSaturation DECLARE Long ColorRGBToHLS in "Shlwapi.dll" ; Long clrRGB, short @wHue, short @wLuminance, short @wSaturation *clrRGB = RGB( 255,0,0) clrRGB = RGB( 0,255,0) *clrRGB = RGB( 0,0,255) ? "RGB", clrRGB Store 0 To wHue, wLuminance, wSaturation = ColorRGBToHLS( clrRGB, @wHue, @wLuminance, @wSaturation) ? "HLS", wHue, wLuminance, wSaturation clrRGB = ColorHLSToRGB( wHue, wLuminance, wSaturation) ? "RGB", clrRGB