Static Public Member Functions | |
| static | rgb_rgbarr ($r, $g, $b) |
| static | hsv_hsvarr ($h, $s, $v) |
| static | hex_rgb ($hex_string) |
| static | rgb_hex ($rgb_arr) |
| static | rgb_hsv ($rgb_arr) |
| static | hsv_rgb ($hsv_arr) |
Various color utility functions.
Definition at line 10 of file colorutils.php.
| static ColorUtils::hex_rgb | ( | $ | hex_string | ) | [static] |
Converts a HTML style hex string ('#7f6699') to an RGB array.
Definition at line 31 of file colorutils.php.
| static ColorUtils::hsv_hsvarr | ( | $ | h, | |
| $ | s, | |||
| $ | v | |||
| ) | [static] |
Convert HSV args to HSV array.
Definition at line 23 of file colorutils.php.
Referenced by rgb_hsv().
| static ColorUtils::hsv_rgb | ( | $ | hsv_arr | ) | [static] |
Convert a HSV array to RGB.
Definition at line 124 of file colorutils.php.
| static ColorUtils::rgb_hex | ( | $ | rgb_arr | ) | [static] |
Convert an RGB array to a HTML style hex color.
Definition at line 70 of file colorutils.php.
| static ColorUtils::rgb_hsv | ( | $ | rgb_arr | ) | [static] |
Convert an RGB array to a HSV array.
Definition at line 80 of file colorutils.php.
| static ColorUtils::rgb_rgbarr | ( | $ | r, | |
| $ | g, | |||
| $ | b | |||
| ) | [static] |
Convert RGB args to RGB array.
Definition at line 15 of file colorutils.php.
1.7.1