soby 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/soby/presentation.rb +16 -6
  3. data/lib/soby.rb +4 -4
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0883ade6bccddac1f2a8c7bfcaebf37d00a404f4
4
- data.tar.gz: fd3ce476ec13bd111b266ab45b6a150a5b40197e
3
+ metadata.gz: d27263a7d63860b125128bcdf3458e721b8f2d6b
4
+ data.tar.gz: b3b312b25cb9adcce4683cb54598f183fa46dbfd
5
5
  SHA512:
6
- metadata.gz: 0ec5a87091c099e6b4c19309bf670d400967b569ae6fa4d422c3a4580fb8dc6bb65ddc7cdb747d552a099470b3e2245577e08f97ad38fb9271a54e1283d77526
7
- data.tar.gz: b7d7a652478ce39e721336f54e7a0ee3cbfa746f680014739856091480857c5c02d6cfb8ffbf4f20eaf6907586aa6f6241050d4f403fecd71bd532f9fb400e1f
6
+ metadata.gz: d564c1563cfb4aa19cb8a4e2d6fb156b15fb4c178951c4b9434b5ae79fe629dbab4083bdc2bac0fc4c7b3a698dcfa49a86575169c1c02f3272d2b7fa79ece359
7
+ data.tar.gz: 204f56234c4cceb90d6fa391ddf9f619439e1220432646bb42d5284a1b6e47b8b5114f25b6843e40c2fc36f20dbb49f03a8199e42d96457f1810d27bca30ae87
@@ -9,19 +9,29 @@ class Presentation
9
9
 
10
10
  attr_accessor :geometry, :slides, :pshape, :svg, :transform
11
11
  attr_accessor :width, :height, :matrix, :videos
12
- attr_reader :nb_slides, :debug
12
+ attr_reader :nb_slides, :debug, :program, :url
13
13
 
14
14
  attr_accessor :graphics
15
15
 
16
- def initialize (app, url)
16
+ def initialize (app, url, program)
17
17
  @app = app
18
- xml = app.loadXML(url)
19
- @pshape = PShapeSVG.new(xml)
20
- @svg = Nokogiri::XML(open(url)).children[1];
21
-
18
+ @url = url
19
+ @program = program
22
20
  @graphics = @app.g
21
+
22
+ load_files
23
23
  build_internal
24
+ end
24
25
 
26
+ def load_files
27
+ xml = @app.loadXML(@url)
28
+ @pshape = PShapeSVG.new(xml)
29
+ @svg = Nokogiri::XML(open(@url)).children[1];
30
+ end
31
+
32
+ def reset
33
+ load_files
34
+ build_internal
25
35
  end
26
36
 
27
37
  def width ; @pshape.getWidth; end
data/lib/soby.rb CHANGED
@@ -13,7 +13,8 @@ Processing::App::load_library 'video', 'toxiclibscore'
13
13
  require_relative 'soby/transforms'
14
14
  require_relative 'soby/presentation'
15
15
  require_relative 'soby/slide'
16
- require_relative 'soby/cam'
16
+ require_relative 'soby/cam'
17
+ require_relative 'launcher'
17
18
 
18
19
  class SobyPlayer < Processing::App
19
20
 
@@ -27,7 +28,6 @@ class SobyPlayer < Processing::App
27
28
 
28
29
  # attr_accessor :background_max_color, :background_min_color, :background_constrain
29
30
  attr_accessor :cam
30
-
31
31
 
32
32
  def running? () @is_running end
33
33
 
@@ -56,8 +56,8 @@ class SobyPlayer < Processing::App
56
56
  @ready = false
57
57
  size @w, @h, OPENGL
58
58
 
59
- ## Some bugs with this.
60
- ## frame.setResizable true if frame != nil
59
+ ## Some bugs with this.
60
+ frame.setResizable true if frame != nil
61
61
 
62
62
  init_player
63
63
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Laviole