\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 : integer

Red value.

Type

integer

$green

$green : integer

Green value.

Type

integer

$blue

$blue : integer

Blue value.

Type

integer

Methods

__construct()

__construct(integer  $red, integer  $green, integer  $blue) 

Creates a new RGB color.

Parameters

integer $red
integer $green
integer $blue

getRed()

getRed() : integer

Returns the red value.

Returns

integer

getGreen()

getGreen() : integer

Returns the green value.

Returns

integer

getBlue()

getBlue() : integer

Returns the blue value.

Returns

integer

__toString()

__toString() : string

Returns a hexadecimal string representation of the RGB value.

Returns

string