\BaconQrCode\Renderer\ColorCmyk

CMYK color.

Summary

Methods
Properties
Constants
__construct()
getCyan()
getMagenta()
getYellow()
getBlack()
toRgb()
toCmyk()
toGray()
No public properties found
No constants found
No protected methods found
$cyan
$magenta
$yellow
$black
N/A
No private methods found
No private properties found
N/A

Properties

$cyan

$cyan : int

Cyan value.

Type

int

$magenta

$magenta : int

Magenta value.

Type

int

$yellow

$yellow : int

Yellow value.

Type

int

$black

$black : int

Black value.

Type

int

Methods

__construct()

__construct(int  $cyan, int  $magenta, int  $yellow, int  $black) : mixed

Creates a new CMYK color.

Parameters

int $cyan
int $magenta
int $yellow
int $black

Returns

mixed —

getCyan()

getCyan() : int

Returns the cyan value.

Returns

int —

getMagenta()

getMagenta() : int

Returns the magenta value.

Returns

int —

getYellow()

getYellow() : int

Returns the yellow value.

Returns

int —

getBlack()

getBlack() : int

Returns the black value.

Returns

int —

toRgb()

toRgb() : \BaconQrCode\Renderer\Color\Rgb

toRgb(): defined by ColorInterface.

Returns

\BaconQrCode\Renderer\Color\Rgb —

toCmyk()

toCmyk() : \BaconQrCode\Renderer\Color\Cmyk

toCmyk(): defined by ColorInterface.

Returns

\BaconQrCode\Renderer\Color\Cmyk —

toGray()

toGray() : \BaconQrCode\Renderer\Color\Gray

toGray(): defined by ColorInterface.

Returns

\BaconQrCode\Renderer\Color\Gray —