Der Test muss über HSL untersucht werden.
This commit is contained in:
@@ -23,11 +23,23 @@ class CyanMagentaYellowKeyTransformer implements ColorModelTransformInterface
|
||||
|
||||
public function toRedGreenBlue(): RedGreenBlue
|
||||
{
|
||||
// TODO: Implement toRedGreenBlue() method.
|
||||
$cyan = $this->color->getCyan();
|
||||
$magenta = $this->color->getMagenta();
|
||||
$yellow = $this->color->getYellow();
|
||||
$key = $this->color->getKey();
|
||||
|
||||
$red = 0;
|
||||
$green = 0;
|
||||
$blue = 0;
|
||||
|
||||
return (new RedGreenBlue())
|
||||
->setRed($red)
|
||||
->setGreen($green)
|
||||
->setBlue($blue);
|
||||
}
|
||||
|
||||
public function toCyanMagentaYellowKey(): CyanMagentaYellowKey
|
||||
{
|
||||
// TODO: Implement toCyanMagentaYellowKey() method.
|
||||
return clone $this->color;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user