We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a871e04 commit c7c824fCopy full SHA for c7c824f
1 file changed
src/RandomColor.php
@@ -107,14 +107,14 @@ static private function _pickHue($options)
107
108
static private function _pickSaturation($h, $options)
109
{
110
- if (@$options['luminosity'] === 'random')
111
- {
112
- return self::_rand(array(0, 100), $options);
113
- }
114
if (@$options['hue'] === 'monochrome')
115
116
return 0;
117
}
+ if (@$options['luminosity'] === 'random')
+ {
+ return self::_rand(array(0, 100), $options);
+ }
118
119
$colorInfo = self::_getColorInfo($h);
120
$range = $colorInfo['s'];
0 commit comments