Function __global->_rgb_from_hsv_contrast
Definitions
sources/themewizard.php
- Helper for calculating an RGB colour with the specified contrast ratio.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: string
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$h | float | required parameter | N/A | N/A | Hue |
$s | float | required parameter | N/A | N/A | Saturation |
$v | float | required parameter | N/A | N/A | Value |
$original_luminance | float | required parameter | N/A | N/A | The luminance of the colour being contrasted |
$ratio | float | required parameter | N/A | N/A | The required contrast ratio of the returned RGB colour compared to the provided HSV |
Return
- RGB colour (null: could not find a colour with the provided contrast ratio)
- Type: ?string
- Set: N/A
- Range: N/A