CodeBase - HSB to RGB

Return to the CodeBase listing

Category: Graphics

Version: 1.0

1
0

Information

Uploaded: 12th Dec 2021 20:03

Modified: 12th Dec 2021 20:03

Author:  dontaskme

Summary

Function: get an rgb value from hsb values

Full Description

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.

Comments

No comments yet.