Sha256: e659abe5cafe16233bbbe973627941cb60d3b460d065c03123658c3e907fbfe2
Contents?: true
Size: 664 Bytes
Versions: 1
Compression:
Stored size: 664 Bytes
Contents
require 'arcball' ############################ # Use mouse drag to rotate # the arcball. Use mousewheel # to zoom. Hold down x, y, z # to constrain rotation axis. ############################ require_relative '../../lib/propane' # temporary local # Include processing opengl classes that we'd like to use: %w(PGL PGraphics3D PGraphicsOpenGL PShapeOpenGL Texture).each do |klass| java_import "processing.opengl.#{klass}" end class ArcballBox < Propane::App def setup size(600, 600, P3D) smooth(8) Processing::ArcBall.init(self, 300, 300) fill 180 end def draw background(50) box(300, 300, 300) end end ArcballBox.new title: 'ArcBall Box'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
propane-0.3.0.pre-java | examples/regular/arcball_box.rb |