diff --git a/src/Colors/AbstractColorChannel.php b/src/Colors/AbstractColorChannel.php index a5777714..a2d0db7b 100644 --- a/src/Colors/AbstractColorChannel.php +++ b/src/Colors/AbstractColorChannel.php @@ -52,7 +52,7 @@ abstract class AbstractColorChannel implements ColorChannelInterface */ public function normalize($precision = 32): float { - return round($this->value() / $this->max(), $precision); + return round(($this->value() - $this->min()) / ($this->max() - $this->min()), $precision); } /**