Rgb
in package
implements
ColorInterface
Interfaces, Classes, Traits and Enums
Table of Contents
- $blue : int
- $green : int
- $red : int
- __construct() : mixed
- getBlue() : int
- getGreen() : int
- getRed() : int
- toCmyk() : Cmyk
- Converts the color to CMYK.
- toGray() : Gray
- Converts the color to gray.
- toRgb() : Rgb
- Converts the color to RGB.
Properties
$blue
private
int
$blue
$green
private
int
$green
$red
private
int
$red
Methods
__construct()
public
__construct(int $red, int $green, int $blue) : mixed
Parameters
- $red : int
-
the red amount of the color, 0 to 255
- $green : int
-
the green amount of the color, 0 to 255
- $blue : int
-
the blue amount of the color, 0 to 255
Return values
mixed —getBlue()
public
getBlue() : int
Return values
int —getGreen()
public
getGreen() : int
Return values
int —getRed()
public
getRed() : 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