require 'jruby_art' class MySketch < Processing::AppGL def setup size 200, 200, P3D Processing::ArcBall.init(self) fill 200, 0, 0 stroke 0 end def draw lights background 0 box 100, 100, 100 end end MySketch.new(title: 'My Sketch')
Experiments with ruby-processing (processing-2.2.1) and JRubyArt for processing-3.0
Showing posts with label acball. Show all posts
Showing posts with label acball. Show all posts
Saturday, 4 October 2014
Simple ArcBall in JRubyArt running from netbeans
Things are moving fast here, now we can offer full arcball functionality with JRubyArt (and just one line of code for user!!!). Rotation via mouse drag, zoom with mousewheel.Interesting seems I can get rid of Processing:: prefix for arcball by "including Processing" in the AppGL class...
Subscribe to:
Posts (Atom)
Followers
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
