23 Zeilen
365 B
PHP
23 Zeilen
365 B
PHP
<?php
|
|
declare(strict_types = 1);
|
|
|
|
namespace BaconQrCode\Renderer\Color;
|
|
|
|
interface ColorInterface
|
|
{
|
|
/**
|
|
* Converts the color to RGB.
|
|
*/
|
|
public function toRgb() : Rgb;
|
|
|
|
/**
|
|
* Converts the color to CMYK.
|
|
*/
|
|
public function toCmyk() : Cmyk;
|
|
|
|
/**
|
|
* Converts the color to gray.
|
|
*/
|
|
public function toGray() : Gray;
|
|
}
|