line |
true |
false |
branch |
54
|
3 |
18 |
$_ + $shade * $by > 255 ? : |
64
|
3 |
12 |
$_ - $shade * $by < 0 ? : |
71
|
34 |
10 |
if $self->_is_hex_color($color) |
72
|
9 |
1 |
if $self->_is_color_name($color) |
121
|
10 |
34 |
if $_ > $max |
122
|
12 |
32 |
if $_ < $min |
130
|
10 |
34 |
unless $color =~ /^[0-9A-Fa-f]{6}$/ |
137
|
2 |
10 |
unless $self->_get_named_color($color) |
155
|
0 |
22 |
$max == 0 ? : |
156
|
0 |
22 |
if (not $hsv{'saturation'}) { } |
|
12 |
10 |
elsif ($r == $max) { } |
|
3 |
7 |
elsif ($g == $max) { } |
|
7 |
0 |
elsif ($b == $max) { } |
168
|
0 |
22 |
if $hsv{'hue'} < 0 |
182
|
0 |
22 |
if ($$hsv{'saturation'} eq '0') { } |
197
|
3 |
19 |
if ($i == 0) { } |
|
3 |
16 |
elsif ($i == 1) { } |
|
3 |
13 |
elsif ($i == 2) { } |
|
2 |
11 |
elsif ($i == 3) { } |
|
10 |
1 |
elsif ($i == 4) { } |