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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 757c6befa7fdeb827fbe59ad15395abff9d1ab8ae5084b3131fc356970150868
4
- data.tar.gz: f891637fc61e2cb496ac3f8522cd812ac794fc5af7ba610b154deed9a8501009
3
+ metadata.gz: 442a641d7182558fa34b55f84e4b37648fe03078cdf2eb704ddb98905a82c5e0
4
+ data.tar.gz: cfd0a4323b9f5f80c0c7a647e895292d12674c1c347a55fbaae3a514804407dd
5
5
  SHA512:
6
- metadata.gz: a6602375742a437525c2b476d19210d06d60d920c43f8da46584a34dc94aa57360d2eccad425a85f4006730bdd0c84128b64cb25623e53a827731c1c7c729f6d
7
- data.tar.gz: 5532490d9f284b4840f40ac60e03842ca31c87a5806e9abf2951bd8308da83137b9c95c8f7b6fc612b9c246415a2a569c638f286aed4bce6e49333c7663cb24f
6
+ metadata.gz: 56901256e4ef89dd5191b7b69150933818f4c0949640eea1d0802fded0820830d6db93048cf22798c9331e232ade88c5173857083ce136dd656a2f57f9873d90
7
+ data.tar.gz: 34a69c2d683a1599d1da020bc9917d160a9ddf35a6a45da017e0b83817dea3b1c5437145b742c715dcd78ed1f043853219ea16680cd6eef0660235c45ae6afc6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- osm-rb (0.0.6)
4
+ osm-rb (0.0.7)
5
5
  oily_png (~> 1.2.1)
6
6
  typhoeus (~> 1.3.1)
7
7
 
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
@@ -1,5 +1,5 @@
1
1
  module OSM
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
 
4
4
  require_relative 'osm/calculator'
5
5
  require_relative 'osm/exporter'
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.6
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-04 00:00:00.000000000 Z
11
+ date: 2020-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler