From f965d7d9d7baa1e55e23a5bbf7cfcccba998874f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20L=C3=BCcke?= Date: Thu, 4 Mar 2021 12:03:23 +0100 Subject: [PATCH] Die grauen Farben werden korrekt ermittelt. --- .../Utilities/HueSaturationValueToRedGreenBlue.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Transformer/Utilities/HueSaturationValueToRedGreenBlue.php b/src/Transformer/Utilities/HueSaturationValueToRedGreenBlue.php index 36a6e13..83544cb 100644 --- a/src/Transformer/Utilities/HueSaturationValueToRedGreenBlue.php +++ b/src/Transformer/Utilities/HueSaturationValueToRedGreenBlue.php @@ -49,6 +49,15 @@ class HueSaturationValueToRedGreenBlue protected function processConvert(): void + { + if ($this->saturation === 0.0) { + $this->red = $this->green = $this->blu = $this->value; + } else { + $this->splitColor(); + } + } + + protected function splitColor(): void { }