HSLtoRGB ( hueDegrees ; satPercentage ; liPercentage )
Converts color from HSL values to RGB percentages.
Average rating: 4.4 (28 votes) Log in to vote
|Joe Rovang - Show more from this author|
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
This function converts the specified color from hue, saturation, and lightness (HSL) to RGB percentages. (Note that HSL is not the same as HSB/HSV!)
While hue is expressed in degrees, all other values are expressed in decimals between 0 and 1, inclusively. To use the output RGB values in a TextColor function, you'd first need to multiply them by 255 and round to whole numbers.
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.