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