Gray
in package
implements
ColorInterface
Interfaces, Classes, Traits and Enums
Table of Contents
- $gray : int
- __construct() : mixed
- getGray() : int
- toCmyk() : Cmyk
- Converts the color to CMYK.
- toGray() : Gray
- Converts the color to gray.
- toRgb() : Rgb
- Converts the color to RGB.
Properties
$gray
private
int
$gray
Methods
__construct()
public
__construct(int $gray) : mixed
Parameters
- $gray : int
-
the gray value between 0 (black) and 100 (white)
Return values
mixed —getGray()
public
getGray() : 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