Cmyk
in package
implements
ColorInterface
Interfaces, Classes, Traits and Enums
Table of Contents
- $black : int
- $cyan : int
- $magenta : int
- $yellow : int
- __construct() : mixed
- getBlack() : int
- getCyan() : int
- getMagenta() : int
- getYellow() : int
- toCmyk() : Cmyk
- Converts the color to CMYK.
- toGray() : Gray
- Converts the color to gray.
- toRgb() : Rgb
- Converts the color to RGB.
Properties
$black
private
int
$black
$cyan
private
int
$cyan
$magenta
private
int
$magenta
$yellow
private
int
$yellow
Methods
__construct()
public
__construct(int $cyan, int $magenta, int $yellow, int $black) : mixed
Parameters
- $cyan : int
-
the cyan amount, 0 to 100
- $magenta : int
-
the magenta amount, 0 to 100
- $yellow : int
-
the yellow amount, 0 to 100
- $black : int
-
the black amount, 0 to 100
Return values
mixed —getBlack()
public
getBlack() : int
Return values
int —getCyan()
public
getCyan() : int
Return values
int —getMagenta()
public
getMagenta() : int
Return values
int —getYellow()
public
getYellow() : int
Return values
int —toCmyk()
Converts the color to CMYK.
public
toCmyk() : Cmyk
Return values
Cmyk —toGray()
Converts the color to gray.
public
toGray() : Gray
Return values
Gray —toRgb()
Converts the color to RGB.
public
toRgb() : Rgb