diff --git a/src/RandomColor.php b/src/RandomColor.php index 6d37072..686788a 100644 --- a/src/RandomColor.php +++ b/src/RandomColor.php @@ -107,14 +107,14 @@ static private function _pickHue($options) static private function _pickSaturation($h, $options) { - if (@$options['luminosity'] === 'random') - { - return self::_rand(array(0, 100), $options); - } if (@$options['hue'] === 'monochrome') { return 0; } + if (@$options['luminosity'] === 'random') + { + return self::_rand(array(0, 100), $options); + } $colorInfo = self::_getColorInfo($h); $range = $colorInfo['s'];