Methods

Calcluate the X11 color value of a hexadecimal color

calculate(string $hexColor) : string

Parameters

$hexColor

string

Returns

string

Populate color property with X11-formatted equivalent

__construct(mixed $color) : void

Parameters

$color

mixed

 Properties

 

<p>X11-formatted color value</p>

$color : string

 Constants

 

Background constant

BACKGROUND 

 

Foreground constant

FOREGROUND