\BaconQrCode\Renderer\ColorGray

Gray color.

Summary

Methods
Properties
Constants
__construct()
getGray()
toRgb()
toCmyk()
toGray()
No public properties found
No constants found
No protected methods found
$gray
N/A
No private methods found
No private properties found
N/A

Properties

$gray

$gray : int

Gray value.

Type

int

Methods

__construct()

__construct(int  $gray) : mixed

Creates a new gray color.

A low gray value means black, while a high value means white.

Parameters

int $gray

Returns

mixed —

getGray()

getGray() : int

Returns the gray 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 —