soby 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/soby/presentation.rb +16 -6
- data/lib/soby.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d27263a7d63860b125128bcdf3458e721b8f2d6b
|
4
|
+
data.tar.gz: b3b312b25cb9adcce4683cb54598f183fa46dbfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d564c1563cfb4aa19cb8a4e2d6fb156b15fb4c178951c4b9434b5ae79fe629dbab4083bdc2bac0fc4c7b3a698dcfa49a86575169c1c02f3272d2b7fa79ece359
|
7
|
+
data.tar.gz: 204f56234c4cceb90d6fa391ddf9f619439e1220432646bb42d5284a1b6e47b8b5114f25b6843e40c2fc36f20dbb49f03a8199e42d96457f1810d27bca30ae87
|
data/lib/soby/presentation.rb
CHANGED
@@ -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
|
-
|
19
|
-
@
|
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
|
-
|
59
|
+
## Some bugs with this.
|
60
|
+
frame.setResizable true if frame != nil
|
61
61
|
|
62
62
|
init_player
|
63
63
|
|