claudiob-radiotagmap 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -0
- data/VERSION +1 -1
- data/lib/radiotagmap.rb +3 -3
- data/radiotagmap.gemspec +1 -1
- metadata +1 -1
data/README.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
data/lib/radiotagmap.rb
CHANGED
@@ -96,9 +96,9 @@ module Radiotagmap
|
|
96
96
|
if weights.nil?
|
97
97
|
a << "ffffff"
|
98
98
|
else
|
99
|
-
r = "%02x" % (255*weights[0]).round
|
100
|
-
b = "%02x" % (255*weights[1]).round
|
101
|
-
g = "%02x" % (255*(1-weights.sum)).round
|
99
|
+
r = "ff" # "%02x" % (255*weights[0]).round
|
100
|
+
b = "%02x" % (255*(1-weights[1])).round
|
101
|
+
g = "ff" #"%02x" % (255*(1-weights.sum)).round
|
102
102
|
a << b << g << r
|
103
103
|
end
|
104
104
|
end
|
data/radiotagmap.gemspec
CHANGED