\BaconQrCode\Renderer\ColorRgb

Summary

Methods
Properties
Constants
__construct()
getRed()
getGreen()
getBlue()
toRgb()
toCmyk()
toGray()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$red
$green
$blue
N/A

Properties

$red

$red : int

Type

int

$green

$green : int

Type

int

$blue

$blue : int

Type

int

Methods

__construct()

__construct(int  $red, int  $green, int  $blue) : mixed

Parameters

int $red

the red amount of the color, 0 to 255

int $green

the green amount of the color, 0 to 255

int $blue

the blue amount of the color, 0 to 255

Returns

mixed —

getRed()

getRed() : int

Returns

int —

getGreen()

getGreen() : int

Returns

int —

getBlue()

getBlue() : int

Returns

int —

toRgb()

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

Converts the color to RGB.

Returns

\BaconQrCode\Renderer\Color\Rgb —

toCmyk()

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

Converts the color to CMYK.

Returns

\BaconQrCode\Renderer\Color\Cmyk —

toGray()

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

Converts the color to gray.

Returns

\BaconQrCode\Renderer\Color\Gray —