/** * Converts a hex color (0x######) to a hsv object * * @param int $hex * @returns array (h,s,v) */ public static function hex2hsv($hex) { return ColorUtils::rgb2hsv(ColorUtils::hex2rgb($hex)); }