ase 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ase/color.rb +9 -1
- data/lib/ase/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: bbce09359246aaba65872f115ee369a756c7ab81
|
4
|
+
data.tar.gz: e6835b3a447af7367f8cebb15418e323fb31baf1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f6a0d3dc97632f7ed08cb08d352d05ba2d868361d7621ef53396628a60f6ee778bb1b05873792e89fbf6baa31acbb1c341c4c11f4106856b779633974c02e3a
|
7
|
+
data.tar.gz: 7b093b2caa0ca419075bf6e83345bcba1d2af3a74302e228810dfe013463a2c4b7d1750628b57744cbd2dd57dd07f55a2a6a572f5deedc0f00cfa2e04834ed58
|
data/lib/ase/color.rb
CHANGED
@@ -45,7 +45,15 @@ class ASE
|
|
45
45
|
colors = [@r, @g, @b]
|
46
46
|
colors << @a if incl_alpha
|
47
47
|
|
48
|
-
colors.each
|
48
|
+
colors.each do |c|
|
49
|
+
color = c.to_s(16)
|
50
|
+
if c < 16
|
51
|
+
hex << "0#{color}"
|
52
|
+
else
|
53
|
+
hex << color
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
49
57
|
return hex
|
50
58
|
end
|
51
59
|
alias :to_s :to_hex
|
data/lib/ase/version.rb
CHANGED