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...
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')
No comments:
Post a Comment