\BaconQrCode\Renderer\ColorGray

Summary

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

Properties

$gray

$gray : int

Type

int

Methods

__construct()

__construct(int  $gray) : mixed

Parameters

int $gray

the gray value between 0 (black) and 100 (white)

Returns

mixed —

getGray()

getGray() : 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 —