class HSLuv

Port of HSLuv Color library to PHP by Carlos Cabo. V.2.0.0 Original by Alexei Boronine. https://github.com/hsluv

The math for most of this module was taken from:

http://www.easyrgb.com http://www.brucelindbloom.com Wikipedia

All numbers below taken from math/bounds.wxm wxMaxima file. We use 17 digits of decimal precision to export the numbers, effectively exporting them as double precision IEEE 754 floats.

"If an IEEE 754 double precision is converted to a decimal string with at least 17 significant digits and then converted back to double, then the final number must match the original"

Source: https://en.wikipedia.org/wiki/Double-precision_floating-point_format

Constants

M

M_INV

REF_U

REF_V

KAPPA

EPSILLON

Methods

static 
xyzToRgb($tuple)

No description

static 
rgbToXyz($tuple)

No description

static 
xyzToLuv($tuple)

No description

static 
luvToXyz($tuple)

No description

static 
luvToLch($tuple)

No description

static 
lchToLuv($tuple)

No description

static 
hsluvToLch($tuple)

No description

static 
lchToHsluv($tuple)

No description

static 
hpluvToLch($tuple)

No description

static 
lchToHpluv($tuple)

No description

static 
rgbToHex($rgb)

No description

static 
hexToRgb($hex)

No description

static 
lchToRgb()

No description

static 
rgbToLch()

No description

static 
hsluvToRgb()

No description

static 
rgbToHsluv()

No description

static 
hpluvToRgb()

No description

static 
rgbToHpluv()

No description

static 
fromRgb()

No description

static 
fromRgbInt()

No description

static 
fromHex($hex)

No description

static 
toRgb()

No description

static 
toRgbInt()

No description

static 
toHex()

No description

static 
p_toRgb()

No description

static 
p_toHex()

No description

static 
p_fromRgb()

No description

static 
p_fromHex($hex)

No description

Details

at line 201
static xyzToRgb($tuple)

Parameters

$tuple

at line 210
static rgbToXyz($tuple)

Parameters

$tuple

at line 254
static xyzToLuv($tuple)

Parameters

$tuple

at line 275
static luvToXyz($tuple)

Parameters

$tuple

at line 295
static luvToLch($tuple)

Parameters

$tuple

at line 316
static lchToLuv($tuple)

Parameters

$tuple

at line 328
static hsluvToLch($tuple)

Parameters

$tuple

at line 345
static lchToHsluv($tuple)

Parameters

$tuple

at line 363
static hpluvToLch($tuple)

Parameters

$tuple

at line 380
static lchToHpluv($tuple)

Parameters

$tuple

at line 398
static rgbToHex($rgb)

Parameters

$rgb

at line 412
static hexToRgb($hex)

Parameters

$hex

at line 432
static lchToRgb()

at line 439
static rgbToLch()

at line 446
static hsluvToRgb()

at line 453
static rgbToHsluv()

at line 460
static hpluvToRgb()

at line 467
static rgbToHpluv()

at line 474
static fromRgb()

at line 480
static fromRgbInt()

at line 489
static fromHex($hex)

Parameters

$hex

at line 494
static toRgb()

at line 502
static toRgbInt()

at line 513
static toHex()

at line 520
static p_toRgb()

at line 527
static p_toHex()

at line 534
static p_fromRgb()

at line 541
static p_fromHex($hex)

Parameters

$hex