# Description: # This is a full-screen demo # Since processing-3.0a10 set in settings class FullScreen < Processing::App def setup sketch_title 'Full Screen' no_stroke end def draw lights background 0 fill 120, 160, 220 (width/100).times do |x| (height/100).times do |y| new_x, new_y = x * 100, y * 100 push_matrix translate new_x + 50, new_y + 50 rotate_y(((mouse_x.to_f + new_x) / width) * Math::PI) rotate_x(((mouse_y.to_f + new_y) / height) * Math::PI) box 90 pop_matrix end end end def settings full_screen P3D end endPS: does not need to be a class wrapped sketch any-more, we are not passing any parameters at runtime.
Experiments with ruby-processing (processing-2.2.1) and JRubyArt for processing-3.0
Sunday, 14 June 2015
Full Screen Sketch in Ruby-Processing-3.0
Nice clean interface for fullscreen in processing-3.0a10, lets hope they keep it. PS: works a treat on Mint linux ie properly fullscreen no nasty menu-bar
Labels:
fullscreen,
processing-3.0,
ruby-processing-3.0
Subscribe to:
Post Comments (Atom)
Followers
Blog Archive
-
▼
2015
(51)
-
▼
June
(7)
- When to use Processing::Proxy
- This Hemesh Sketch Forced me to use JRuby Edges
- Watch Mode Working in Ruby-Processing-3.0
- Full Screen Sketch in Ruby-Processing-3.0
- FX2D works better than JAVA2D on ruby-processing-3.0
- Prototyping glsl shader sketches in ruby-processing
- More Experiments with Java Reflection in Ruby-Proc...
-
▼
June
(7)
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