TCPDF_COLORS::convertHTMLColorToDec( $hcolor, $spotc, $defcol = array('R' => 128, 'G' => 128, 'B' => 128) )
Returns an array (RGB or CMYK) from an html color name, or a six-digit (i.e. #3FE5AA), or three-digit (i.e. #7FF) hexadecimal color, or a javascript color array, or javascript color name.
Description Description
Parameters Parameters
- $hcolor
-
(Required) (string) HTML color.
- $spotc
-
(Required) (array) Reference to an array of spot colors.
- $defcol
-
(Optional) (array) Color to return in case of error.
Default value: array('R' => 128, 'G' => 128, 'B' => 128)
Return Return
(array) RGB or CMYK color, or false in case of error.
Source Source
File: includes/lib/tcpdf/include/tcpdf_colors.php