Function __global->rgb_to_hsv
Definitions
sources/themewizard.php
- Convert an RGB colour to HSV colour components. Based on publicly distributed code fragments which were themselves based on others: reasonably assumed as public domain.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $rgb | string | No | No | required parameter | N/A | N/A | RRGGBB colour |
Returns
- Triplet of (0-255) components: H, S, V
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Convert an RGB colour to HSV colour components. Based on publicly distributed code fragments which were themselves based on others: reasonably assumed as public domain.
*
* @param string $rgb RRGGBB colour
* @return array Triplet of (0-255) components: H, S, V
*/
function rgb_to_hsv(string $rgb) : array
* Convert an RGB colour to HSV colour components. Based on publicly distributed code fragments which were themselves based on others: reasonably assumed as public domain.
*
* @param string $rgb RRGGBB colour
* @return array Triplet of (0-255) components: H, S, V
*/
function rgb_to_hsv(string $rgb) : array

