CmykColor
in package
implements
ColorInterface
FinalYes
CMYK color with components in 0.0–1.0 range — maps to PDF DeviceCMYK.
Table of Contents
Interfaces
- ColorInterface
- Common contract for PDF color operands — used by ContentStream color operators.
Properties
Methods
- __construct() : mixed
- getColorSpace() : string
- toArray() : array<int, float>
- toRgb() : RgbColor
Properties
$c read-only
public
float
$c
$k read-only
public
float
$k
$m read-only
public
float
$m
$y read-only
public
float
$y
Methods
__construct()
public
__construct(float $c, float $m, float $y, float $k) : mixed
Parameters
- $c : float
- $m : float
- $y : float
- $k : float
getColorSpace()
public
getColorSpace() : string
Return values
stringtoArray()
public
toArray() : array<int, float>
Return values
array<int, float>toRgb()
public
toRgb() : RgbColor