TCPDF_COLORS
class TCPDF_COLORS (View source)
Properties
static | $webcolor | Array of WEB safe colors |
|
static | $jscolor | Array of valid JavaScript color names |
|
static | $spotcolor | Array of Spot colors (C,M,Y,K,name) Color keys must be in lowercase and without spaces. |
Methods
Return the Spot color array.
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.
Convert a color array into a string representation.
Convert color to javascript color.
Details
static array|false
getSpotColor(string $name, array $spotc)
Return the Spot color array.
static array|false
convertHTMLColorToDec(string $hcolor, array $spotc, array $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.
static string
getColorStringFromArray(array $c)
Convert a color array into a string representation.
static protected
_JScolor(string $color)
Convert color to javascript color.