Die Leuchtdichte wird richtig erkannt.

This commit is contained in:
2021-03-03 12:53:36 +01:00
parent fca28e684c
commit 336c9c63da
@@ -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