Methods

__construct()

__construct() 

ColorConverter

FromRGB()

FromRGB(float  $r, float  $g, float  $b) : array

Convert from RGB

Parameters

float $r
float $g
float $b

Returns

array

FromCIELAB()

FromCIELAB(float  $L, float  $a, float  $b) : array

Convert from CIELAB

Parameters

float $L
float $a
float $b

Returns

array

FromCMYK()

FromCMYK(float  $c, float  $m, float  $y, float  $k) : array

Convert from CMYK

Parameters

float $c
float $m
float $y
float $k

Returns

array

FromHEX()

FromHEX(string  $hex) : array

Convert from HEX

Parameters

string $hex

Returns

array

FromXYZ()

FromXYZ(float  $x, float  $y, float  $z) : array

Convert from XYZ

Parameters

float $x
float $y
float $z

Returns

array

ConvertRGB()

ConvertRGB(float  $r, float  $g, float  $b, string  $observer1, string  $observer2) : array

Convert from RGB using illumination and observer angles

Parameters

float $r
float $g
float $b
string $observer1
string $observer2

Returns

array

ConvertCIELAB()

ConvertCIELAB(float  $L, float  $a, float  $b, string  $observer1, string  $observer2) : array

Convert from CIELAB using illumination and observer angles

Parameters

float $L
float $a
float $b
string $observer1
string $observer2

Returns

array

ConvertCMYK()

ConvertCMYK(float  $c, float  $m, float  $y, float  $k, string  $observer1, string  $observer2) : array

Convert from CMYK using illumination and observer angles

Parameters

float $c
float $m
float $y
float $k
string $observer1
string $observer2

Returns

array

ConvertHEX()

ConvertHEX(string  $hex, string  $observer1, string  $observer2) : array

Convert from HEX using illumination and observer angles

Parameters

string $hex
string $observer1
string $observer2

Returns

array

ConvertXYZ()

ConvertXYZ(float  $x, float  $y, float  $z, string  $observer1, string  $observer2) : array

Convert from XYZ using illumination and observer angles

Parameters

float $x
float $y
float $z
string $observer1
string $observer2

Returns

array

AddReferenceColorByRGB()

AddReferenceColorByRGB(string  $system, string  $name, string  $description, float  $r, float  $g, float  $b) : void

Add a reference color

Parameters

string $system
string $name
string $description
float $r
float $g
float $b

AddReferenceColorByCIELAB()

AddReferenceColorByCIELAB(string  $system, string  $name, string  $description, float  $L, float  $a, float  $b) : void

Add a reference color

Parameters

string $system
string $name
string $description
float $L
float $a
float $b

AddReferenceColorByCMYK()

AddReferenceColorByCMYK(string  $system, string  $name, string  $description, float  $c, float  $m, float  $y, float  $k) : void

Add a reference color

Parameters

string $system
string $name
string $description
float $c
float $m
float $y
float $k

AddReferenceColorByHEX()

AddReferenceColorByHEX(string  $system, string  $name, string  $description, string  $hex) : void

Add a reference color

Parameters

string $system
string $name
string $description
string $hex

AddReferenceColorByXYZ()

AddReferenceColorByXYZ(string  $system, string  $name, string  $description, float  $x, float  $y, float  $z) : void

Add a reference color

Parameters

string $system
string $name
string $description
float $x
float $y
float $z

FindReferenceColorByRGB()

FindReferenceColorByRGB(float  $r, float  $g, float  $b) : array

Parameters

float $r
float $g
float $b

Returns

array

FindReferenceColorByCIELAB()

FindReferenceColorByCIELAB(float  $L, float  $a, float  $b) : array

Parameters

float $L
float $a
float $b

Returns

array

FindReferenceColorByCMYK()

FindReferenceColorByCMYK(float  $c, float  $m, float  $y, float  $k) : array

Parameters

float $c
float $m
float $y
float $k

Returns

array

FindReferenceColorByHEX()

FindReferenceColorByHEX(string  $hex) : array

Parameters

string $hex

Returns

array

FindReferenceColorByXYZ()

FindReferenceColorByXYZ(float  $x, float  $y, float  $z) : array

Parameters

float $x
float $y
float $z

Returns

array

FindReferenceColor()

FindReferenceColor(string  $system, string  $name) : array

Parameters

string $system
string $name

Returns

array

RemoveReferenceColorSystem()

RemoveReferenceColorSystem(string  $system) : void

Remove reference color system and all reference colors

Parameters

string $system

GetReferenceColorSystems()

GetReferenceColorSystems() : array

Get all reference color systems

Returns

array

GetReferenceColors()

GetReferenceColors(string  $system) : array

Get all reference colors in a color reference system

Parameters

string $system

Returns

array

GetIlluminationObserverAngles()

GetIlluminationObserverAngles() : array

Get supported illumination and observer angles

Returns

array

SaveReferenceColors()

SaveReferenceColors(string  $id) : void

Save reference colors

Parameters

string $id

LoadReferenceColors()

LoadReferenceColors(string  $id) : void

Load reference colors

Parameters

string $id