Class ColorUtils

Description

Various color utility functions.

Located in /system/classes/colorutils.php (line 6)


	
			
Method Summary
static void hex_rgb ( $hex_string)
static void hsv_hsvarr ( $h,  $s,  $v)
static void hsv_rgb ( $hsv_arr)
static void rgb_hex ( $rgb_arr)
static void rgb_hsv ( $rgb_arr)
static void rgb_rgbarr ( $r,  $g,  $b)
Methods
static method hex_rgb (line 27)

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

  • access: public
static void hex_rgb ( $hex_string)
  • $hex_string
static method hsv_hsvarr (line 19)

Convert HSV args to HSV array.

  • access: public
static void hsv_hsvarr ( $h,  $s,  $v)
  • $h
  • $s
  • $v
static method hsv_rgb (line 120)

Convert a HSV array to RGB.

  • access: public
static void hsv_rgb ( $hsv_arr)
  • $hsv_arr
static method rgb_hex (line 66)

Convert an RGB array to a HTML style hex color.

  • access: public
static void rgb_hex ( $rgb_arr)
  • $rgb_arr
static method rgb_hsv (line 76)

Convert an RGB array to a HSV array.

  • access: public
static void rgb_hsv ( $rgb_arr)
  • $rgb_arr
static method rgb_rgbarr (line 11)

Convert RGB args to RGB array.

  • access: public
static void rgb_rgbarr ( $r,  $g,  $b)
  • $r
  • $g
  • $b

Documentation generated on Thu, 30 Oct 2008 20:31:03 +0100 by phpDocumentor 1.3.2