Der Test muss über HSL untersucht werden.

This commit is contained in:
2021-03-02 11:05:16 +01:00
parent 363d2b232f
commit fe01eded37
@@ -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;
}
}