rainbow_gradient 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rainbow/color_range.rb +2 -2
- data/lib/rainbow/gradient.rb +1 -1
- data/lib/rainbow/opacity_ranges.rb +3 -1
- data/lib/rainbow/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6551c5f236fcc474c4c139ccf7e22dbc5c9a335
|
4
|
+
data.tar.gz: 0ef61723ad371ba224e9a5139f2d12aac3e2efbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c5dc7c77e7c85ce02f4808278ec5b4691f9fbc12842f9f216f202a107e197504c19c8abecb57a58f2c568246848621fa0f28e79e76ab02e41d3bc118870a2e9
|
7
|
+
data.tar.gz: ef1e31c554fe6ac4b7666deb7c1f4d32ab2b89be99bb29ff8b46ee72bc303976de7532fd37e57ccaac436ad7195bf084900c7131fb599800d3e4fae697f9f7c3
|
data/lib/rainbow/color_range.rb
CHANGED
data/lib/rainbow/gradient.rb
CHANGED
@@ -144,8 +144,8 @@ module Rainbow
|
|
144
144
|
|
145
145
|
color_ranges.each_with_index do |color_range, index|
|
146
146
|
color_range.previous = previous_color_range
|
147
|
-
color_range.gradient = self
|
148
147
|
color_range.opacity_ranges = opacity_ranges
|
148
|
+
color_range.gradient = self
|
149
149
|
|
150
150
|
# When the first color location is not 0
|
151
151
|
x_coverred += paint_prefix(canvas, color_range, x_coverred) if index == 0
|
@@ -34,7 +34,9 @@ module Rainbow
|
|
34
34
|
elsif last_range.to_opacity.location < 100 && x > last_range.to_location_in_pixel
|
35
35
|
ranges.last
|
36
36
|
else
|
37
|
-
|
37
|
+
ranges.last
|
38
|
+
# err_msg = "(#{x}) (#{first_range.from_location_in_pixel} - #{last_range.to_location_in_pixel})"
|
39
|
+
# raise "Cannot find current opacity range! #{err_msg}"
|
38
40
|
end
|
39
41
|
end
|
40
42
|
end
|
data/lib/rainbow/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rainbow_gradient
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sophy Eung
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chunky_png
|