CodeBase - HSB to RGB
Uploaded: 12th Dec 2021 20:03
Modified: 12th Dec 2021 20:03
Function: get an rgb value from hsb values
If you prefer using hsb to rgb values for your colors you might give this a try. <br /> The function takes hue (0 - 360), saturation (0.0 - 1.0) and brightness (0.0 - 1.0) and returns an integer rgb color value. I added a color correction for the green range, which often is too bright and unnatural. Feel free to toy around with the parameters for a result that meets your taste.
No comments yet.