diff --git a/src/Transformer/Utilities/CyanMagentaYellowKeyToHueSaturationValue.php b/src/Transformer/Utilities/CyanMagentaYellowKeyToHueSaturationValue.php index 33ae3d1..aec5071 100644 --- a/src/Transformer/Utilities/CyanMagentaYellowKeyToHueSaturationValue.php +++ b/src/Transformer/Utilities/CyanMagentaYellowKeyToHueSaturationValue.php @@ -55,8 +55,7 @@ class CyanMagentaYellowKeyToHueSaturationValue $this->minCmyProperty = min($this->cyan, $this->magenta, $this->yellow); $this->hue = round($this->buildHueAmount(), 3); - $this->hue = $this->buildHueAmount(); - $this->saturation = $this->buildSaturationAmount(); + $this->saturation = $this->maxCmyProperty; $this->value = 1 - $this->key; } @@ -83,15 +82,6 @@ class CyanMagentaYellowKeyToHueSaturationValue }; } - protected function buildSaturationAmount(): float - { - if ($this->maxCmyProperty === 0.0) { - return 0.0; - } - - return ($this->maxCmyProperty - $this->minCmyProperty) / $this->maxCmyProperty; - } - /** * @param string $property : Name der CMYK-Eigenschaft * @return float