load_library :glw include_package 'processing.glw' def setup size(2560, 1440, GLW::P2D) frame_rate(180) # NB: here we are using the "processing" set frame rate method end def draw background(255, 0, 0) fill(255) # NB: here we access "processing" frame rate variable text("FPS: #{frame_rate}", mouse_x, mouse_y) end
Experiments with ruby-processing (processing-2.2.1) and JRubyArt for processing-3.0
Tuesday, 19 November 2013
Testing the GLW renderer with ruby-processing
Andreas Colubri is working on an alternative renderer for processing (which seems to be stabilising as the GLW renderer). Here is an example sketch translated to ruby-processing requires processing-2.1.1 to run (OK development version as that is not currently available).
Labels:
GLW,
NEWT,
processing-2.1.1,
ruby-processing
Subscribe to:
Post Comments (Atom)
Followers
Blog Archive
-
▼
2013
(94)
-
▼
November
(8)
- Ruby-processing on MacOSX, Apple or Oracle JVM
- Running Ruby Processing from Netbeans-7.4
- A Rakefile to demo ruby-processing samples
- Bleeding edge development of ruby-processing
- Testing the GLW renderer with ruby-processing
- Working towards returning ruby-processing to gem d...
- Promise for the future of jruby, ruby-processing
- For Rails Hackers
-
▼
November
(8)
About Me
- monkstone
- I have developed JRubyArt and propane new versions of ruby-processing for JRuby-9.1.5.0 and processing-3.2.2
No comments:
Post a Comment