Documentation

Alpha
in package
implements ColorInterface

Interfaces, Classes, Traits and Enums

ColorInterface

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

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

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
Return values
Rgb

Search results