Die Leuchtdichte wird richtig erkannt.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user