Documentation

ColorModeConverter
in package

Table of Contents

Methods

cmyk2gray()  : array<string|int, float>
cmyk2rgb()  : array<string|int, float>
hsl2rgb()  : array<string|int, float>
Input is HSL value of complementary colour, held in $h2, $s, $l as fractions of 1 Output is RGB in normal 255 255 255 format, held in $r, $g, $b
hue2rgb()  : float
rgb2cmyk()  : array<string|int, float>
rgb2gray()  : array<string|int, float>
rgb2hsl()  : array<string|int, float>

Methods

cmyk2gray()

public cmyk2gray(array<string|int, float> $c) : array<string|int, float>
Parameters
$c : array<string|int, float>
Return values
array<string|int, float>

cmyk2rgb()

public cmyk2rgb(array<string|int, float> $c) : array<string|int, float>
Parameters
$c : array<string|int, float>
Return values
array<string|int, float>

hsl2rgb()

Input is HSL value of complementary colour, held in $h2, $s, $l as fractions of 1 Output is RGB in normal 255 255 255 format, held in $r, $g, $b

public hsl2rgb(float $h, float $s, float $l) : array<string|int, float>
Parameters
$h : float
$s : float
$l : float
Return values
array<string|int, float>

hue2rgb()

public hue2rgb(float $v1, float $v2, float $vh) : float
Parameters
$v1 : float
$v2 : float
$vh : float
Return values
float

rgb2cmyk()

public rgb2cmyk(array<string|int, float> $c) : array<string|int, float>
Parameters
$c : array<string|int, float>
Return values
array<string|int, float>

rgb2gray()

public rgb2gray(array<string|int, float> $c) : array<string|int, float>
Parameters
$c : array<string|int, float>
Return values
array<string|int, float>

rgb2hsl()

public rgb2hsl(float $r, float $g, float $b) : array<string|int, float>
Parameters
$r : float
$g : float
$b : float
Return values
array<string|int, float>

        
On this page

Search results