osm-rb 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/Gemfile.lock +1 -1
- data/lib/osm/exporter.rb +5 -0
- data/lib/osm.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 442a641d7182558fa34b55f84e4b37648fe03078cdf2eb704ddb98905a82c5e0
|
4
|
+
data.tar.gz: cfd0a4323b9f5f80c0c7a647e895292d12674c1c347a55fbaae3a514804407dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56901256e4ef89dd5191b7b69150933818f4c0949640eea1d0802fded0820830d6db93048cf22798c9331e232ade88c5173857083ce136dd656a2f57f9873d90
|
7
|
+
data.tar.gz: 34a69c2d683a1599d1da020bc9917d160a9ddf35a6a45da017e0b83817dea3b1c5437145b742c715dcd78ed1f043853219ea16680cd6eef0660235c45ae6afc6
|
data/Gemfile.lock
CHANGED
data/lib/osm/exporter.rb
CHANGED
@@ -42,6 +42,11 @@ module OSM
|
|
42
42
|
png
|
43
43
|
end
|
44
44
|
|
45
|
+
def blend(image1, image2)
|
46
|
+
png = image2.compose(image1)
|
47
|
+
return png
|
48
|
+
end
|
49
|
+
|
45
50
|
def draw_line(png, coordinates, rgb = { r: 255, g: 0, b: 0 })
|
46
51
|
str0 = coordinates.map { |c| "(#{c.x},#{c.y})" }.join(' ')
|
47
52
|
str1 = coordinates.map { |c| "(#{c.x+1},#{c.y})" }.join(' ')
|
data/lib/osm.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: osm-rb
|
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
|
- Lukas_Skywalker
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|