soby 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/soby.rb +20 -6
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 741bf628ad3e0da903095f9ca51eda88da41d5a3
4
- data.tar.gz: a56abbab0741fe64b34ffd49d5220d481122a8ad
3
+ metadata.gz: 8a80e59efa073e8a79cff764a986e4f60388e047
4
+ data.tar.gz: 956b447e612e40f24e47a045e4364cb4d9aaabce
5
5
  SHA512:
6
- metadata.gz: c7850fe3428d169fee9aed282c6c340826f8c7133a7d725ac70a85f5829f0d33be21d6fdceebd07d6daddea24009336322776f08da1c79156bc3aaa41d17d97e
7
- data.tar.gz: ada53ede2ccfefd84bcdc09d936fbfb91173567931f90d8c7a9d64029c42a381275ead8486e53f1d67c8ae9274b21d70009d06124ae6b4b6c947e91e75c1f25c
6
+ metadata.gz: 96aa53ec38fa0b1e9b2fd2906416273c93d88232a9ec91df90710b718b0e7e87a592624bc1549baf30be901f1c25b4bf76a141a47c499d3ce9b655ae8f28720d
7
+ data.tar.gz: 905367b0c8854409ec4cc84a33b70d6537fa70c7b6de0e9ae04590898afef71bb2a13a862b6a3524d09aaa6728eb4b6ce2ab6a968d3a1f4f1e5e5ac854b19b4b
@@ -4,13 +4,16 @@ require 'nokogiri' # for XML.
4
4
  require 'ruby-processing'
5
5
  require 'java'
6
6
 
7
+ Processing::Runner
8
+ Dir["#{Processing::RP_CONFIG['PROCESSING_ROOT']}/core/library/\*.jar"].each{ |jar| require jar }
9
+
7
10
  # For the other files, we need to load the libraries
8
11
  Processing::App::load_library 'video', 'toxiclibscore'
9
12
 
10
- require_relative 'transforms'
11
- require_relative 'presentation'
12
- require_relative 'slide'
13
- require_relative 'cam'
13
+ require_relative 'soby/transforms'
14
+ require_relative 'soby/presentation'
15
+ require_relative 'soby/slide'
16
+ require_relative 'soby/cam'
14
17
 
15
18
  class SobyPlayer < Processing::App
16
19
 
@@ -30,6 +33,12 @@ class SobyPlayer < Processing::App
30
33
 
31
34
  TRANSITION_DURATION = 1000
32
35
 
36
+ def initialize(w, h)
37
+ @w = w
38
+ @h = h
39
+ super()
40
+ end
41
+
33
42
  # no Border
34
43
  def init
35
44
  super
@@ -45,7 +54,7 @@ class SobyPlayer < Processing::App
45
54
 
46
55
  def setup
47
56
  @ready = false
48
- size 1024, 768, OPENGL
57
+ size @w, @h, OPENGL
49
58
 
50
59
  ## Some bugs with this.
51
60
  ## frame.setResizable true if frame != nil
@@ -198,10 +207,15 @@ class SobyPlayer < Processing::App
198
207
 
199
208
 
200
209
  def set_prez (prez)
210
+
211
+ current_slide = @current_slide_no
212
+
201
213
  # PShape.loadedImages.clear
202
214
  @prez = prez
203
215
  @slides = prez.slides
204
- goto_slide 0
216
+
217
+ goto_slide current_slide
218
+
205
219
  @is_running = true
206
220
  @prez_middle = PVector.new(@prez.width / 2.0, @prez.height / 2.0)
207
221
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Laviole
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-27 00:00:00.000000000 Z
11
+ date: 2015-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement