soby 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/soby.rb +20 -6
- 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: 8a80e59efa073e8a79cff764a986e4f60388e047
|
4
|
+
data.tar.gz: 956b447e612e40f24e47a045e4364cb4d9aaabce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96aa53ec38fa0b1e9b2fd2906416273c93d88232a9ec91df90710b718b0e7e87a592624bc1549baf30be901f1c25b4bf76a141a47c499d3ce9b655ae8f28720d
|
7
|
+
data.tar.gz: 905367b0c8854409ec4cc84a33b70d6537fa70c7b6de0e9ae04590898afef71bb2a13a862b6a3524d09aaa6728eb4b6ce2ab6a968d3a1f4f1e5e5ac854b19b4b
|
data/lib/soby.rb
CHANGED
@@ -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
|
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
|
-
|
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.
|
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-
|
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
|