\BaconQrCode\Renderer\ColorRgb

RGB color.

Summary

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

Properties

$red

$red : int

Red value.

Type

int

$green

$green : int

Green value.

Type

int

$blue

$blue : int

Blue value.

Type

int

Methods

__construct()

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

Creates a new RGB color.

Parameters

int $red
int $green
int $blue

Returns

mixed —

getRed()

getRed() : int

Returns the red value.

Returns

int —

getGreen()

getGreen() : int

Returns the green value.

Returns

int —

getBlue()

getBlue() : int

Returns the blue value.

Returns

int —

__toString()

__toString() : string

Returns a hexadecimal string representation of the RGB value.

Returns

string —

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 —