rainbow_colors 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rainbow_colors/palette.rb +1 -1
- data/lib/rainbow_colors/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94115a4aa307ac7cd103db4512ed30003dd9f3fd
|
4
|
+
data.tar.gz: 766590964ddec9f86965403966f0189e201f9998
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 759787b56e1862275c259bb01106cf1f60dedd649d0fd37730477062dc8228094f4407deb8cea1d639f14c9a0405e3da93ff85e02adc26afd1a17fed5d823cbb
|
7
|
+
data.tar.gz: da4a3e2da8bff299724299361d1994d2922fab4b143ea69c4c70f7afabf739d635707f667cc8d5ac0beec3eee44e0b2202a1ee3bf6e5fffe2e5aaa3a68bf26db
|
@@ -44,7 +44,7 @@ module RainbowColors
|
|
44
44
|
delta_blue = [bg[:blue], c[:blue]].max - [bg[:blue], c[:blue]].min
|
45
45
|
color_difference = delta_red + delta_green + delta_blue
|
46
46
|
|
47
|
-
contrast_colors << RainbowColors::Convertor.hex_from_rgb(c) if color_difference >
|
47
|
+
contrast_colors << RainbowColors::Convertor.hex_from_rgb(c) if color_difference > 250
|
48
48
|
end
|
49
49
|
|
50
50
|
# Return random contrasting color color, if available
|