Function __global->hsl_to_rgb
Definitions
sources/themes.php
- Converts an HSL color value to RGB. Conversion formula adapted from http://en.wikipedia.org/wiki/HSL_color_space.Inspired by https://stackoverflow.com/a/9493060/362006 .Assumes h, s, and l are contained in the set [0, 1] and returns r, g, and b in the set [0, 255].
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$hue | float | required parameter | N/A | N/A | Hue (0.0-1.0) |
$sat | float | required parameter | N/A | N/A | Saturation (0.0-1.0) |
$lht | float | required parameter | N/A | N/A | Lightness (0.0-1.0) |
Return
- Triplet of components: R, G, B (0-255)
- Type: array
- Set: N/A
- Range: N/A