Skip to content

Commit a6835cf

Browse files
committed
Add library_proxy to index, tidy up mouse demo
1 parent 7882f5f commit a6835cf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Like the original `ruby-processing`, `JRubyArt` is like a DSL for vanilla `proce
3535
2. [vecmath][]
3636
3. [control-panel][]
3737
4. [video][]
38+
5. [library proxy][]
3839

3940
4. Gems
4041
1. [PBox2D][pbox2d]
@@ -74,6 +75,7 @@ Like the original `ruby-processing`, `JRubyArt` is like a DSL for vanilla `proce
7475
[vecmath]:https://github.com/ruby-processing/JRubyArt-examples/tree/master/processing_app/library/vecmath
7576
[video]:https://github.com/ruby-processing/JRubyArt-examples/tree/master/processing_app/library/video
7677
[control-panel]:https://github.com/ruby-processing/JRubyArt-examples/tree/master/contributed/jwishy.rb
78+
[library proxy]:https://github.com/ruby-processing/JRubyArt-examples/tree/master/processing_app/library/library_proxy
7779
[PBox2D]:https://github.com/ruby-processing/JRubyArt-examples/tree/master/external_library/ruby_gem/jbox2d
7880
[hype]:https://github.com/ruby-processing/JRubyArt-examples/tree/master/external_library/java/hype
7981
[hemesh]:https://github.com/ruby-processing/JRubyArt-examples/tree/master/external_library/java/hemesh

processing_app/library/library_proxy/library/mouse_thing/mouse_thing.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ def draw
1111
def mouseEvent(event)
1212
case event.action
1313
when MouseEvent::CLICK
14-
# puts 'CLICK'
15-
app.send :puts, event.toString
14+
fstring = 'CLICK at x = %.1f, y = %.1f'
15+
puts format(fstring, event.x, event.y)
1616
when MouseEvent::DRAG
1717
puts 'DRAG'
1818
when MouseEvent::WHEEL

0 commit comments

Comments
 (0)