Skip to content

Commit dfe28d7

Browse files
committed
library test
1 parent dbec45b commit dfe28d7

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

processing_app/library/library_proxy/proxy_library.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
# reflection methods 'pre', 'post' and 'draw' (which we should implement)
44
# width, height, fill, stroke, background are available, otherwise use app.
55
class TestProxy < LibraryProxy # subclass LibraryProxy
6-
6+
def mousePressed(event); end # empty method is OK
7+
def keyPressed(event); end # empty method is OK
78
def pre; end # empty method is OK
8-
9+
910
def draw
1011
fill 200
1112
app.ellipse(width / 2, height / 2, 20, 20)
1213
end
13-
14-
def post; end # empty method is OK
14+
15+
def post; end # empty method is OK
1516
end

processing_app/library/library_proxy/test_proxy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def setup
1212
end
1313

1414
def draw
15-
background 0, 0, 200
15+
background 0, 0, 200
1616
fill 200, 0, 0
1717
ellipse 150, 150, 200, 100
1818
end

0 commit comments

Comments
 (0)