Function __global->rgb_luminance
Definitions
sources/themewizard.php
- Calculate the luminance of a colour.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: float
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$r | float | required parameter | N/A | N/A | Red |
$g | float | required parameter | N/A | N/A | Green |
$b | float | required parameter | N/A | N/A | Blue |
Return
- The luminance of the provided colour
- Type: float
- Set: N/A
- Range: N/A