From 07cf2f12cd1017ab04e1171c3ad591926eb7dbfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20L=C3=BCcke?= Date: Fri, 5 Mar 2021 17:36:36 +0100 Subject: [PATCH] Das Runden war notwendig, weil die Genauigkeit bei den Tests nicht bestimmt wurde. --- .../Utilities/CyanMagentaYellowKeyToHueSaturationValue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Transformer/Utilities/CyanMagentaYellowKeyToHueSaturationValue.php b/src/Transformer/Utilities/CyanMagentaYellowKeyToHueSaturationValue.php index aec5071..12ed5e2 100644 --- a/src/Transformer/Utilities/CyanMagentaYellowKeyToHueSaturationValue.php +++ b/src/Transformer/Utilities/CyanMagentaYellowKeyToHueSaturationValue.php @@ -54,7 +54,7 @@ class CyanMagentaYellowKeyToHueSaturationValue $this->maxCmyProperty = max($this->cyan, $this->magenta, $this->yellow); $this->minCmyProperty = min($this->cyan, $this->magenta, $this->yellow); - $this->hue = round($this->buildHueAmount(), 3); + $this->hue = $this->buildHueAmount(); $this->saturation = $this->maxCmyProperty; $this->value = 1 - $this->key; }