Static Public Member Functions

ColorUtils Class Reference

List of all members.

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)

Detailed Description

Various color utility functions.

Definition at line 11 of file colorutils.php.


Member Function Documentation

static ColorUtils::hex_rgb ( hex_string  )  [static]

Converts a HTML style hex string ('#7f6699') to an RGB array.

Definition at line 32 of file colorutils.php.

static ColorUtils::hsv_hsvarr ( h,
s,
v 
) [static]

Convert HSV args to HSV array.

Definition at line 24 of file colorutils.php.

Referenced by rgb_hsv().

static ColorUtils::hsv_rgb ( hsv_arr  )  [static]

Convert a HSV array to RGB.

Definition at line 129 of file colorutils.php.

static ColorUtils::rgb_hex ( rgb_arr  )  [static]

Convert an RGB array to a HTML style hex color.

Definition at line 71 of file colorutils.php.

static ColorUtils::rgb_hsv ( rgb_arr  )  [static]

Convert an RGB array to a HSV array.

Definition at line 81 of file colorutils.php.

static ColorUtils::rgb_rgbarr ( r,
g,
b 
) [static]

Convert RGB args to RGB array.

Definition at line 16 of file colorutils.php.

Referenced by hex_rgb(), and hsv_rgb().


The documentation for this class was generated from the following file: