Some more convenience functions for the HSB/HSV colorspace, parameters and results are similar to the QB64 functions _RED32/_GREEN32/_BLUE32 for the RGB colorspace with the only difference, that the HSB results are returned as SINGLEs. If you work with any INTEGER types only, then you can use CINT or CLNG on the results to get back the same values originally passed to the HSB32()/HSBA32() functions.
SYNTAX:
hue! = HUE32! (argbColor&) sat! = SAT32! (argbColor&) bri! = BRI32! (argbColor&)
INPUTS:
argbColor& (LONG)
- The 32-bit ARGB color value to retrieve the HSB/HSV component intensity values from.
RESULT:
hue! (SINGLE)
- This will be returned by the function HUE32() and represents the Hue value of the given color in the range 0-360 degrees.
sat! (SINGLE)
- This will be returned by the function SAT32() and represents the Saturation value of the given color in the range 0-100%.
bri! (SINGLE)
- This will be returned by the function BRI32() and represents the Brightness value of the given color in the range 0-100%.