Sha256: b78827ab9c33d79b45a714e914a304861bf5d5248f8c80063937fdb49d904c3f

Contents?: true

Size: 434 Bytes

Versions: 10

Compression:

Stored size: 434 Bytes

Contents

load_library 'peasycam'
include_package 'peasy'

attr_reader :cam

def setup
  size 200, 200, P3D
  configure_camera
end

def configure_camera
  @cam = PeasyCam.new(self, 100)
  cam.set_minimum_distance 50
  cam.set_maximum_distance 500
end

def draw
  rotate_x(-0.5)
  rotate_y(-0.5) 
  background 0
  fill 255, 0, 0
  box 30
  push_matrix
  translate 0, 0, 20
  fill 0, 0, 255
  box 5
  pop_matrix
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ruby-processing-2.6.3 samples/external_library/java_processing/peasy_cam/hello_peasy.rb
ruby-processing-2.6.2 samples/external_library/java_processing/peasy_cam/hello_peasy.rb
ruby-processing-2.6.1 samples/external_library/java_processing/peasy_cam/hello_peasy.rb
ruby-processing-2.6.0 samples/external_library/java_processing/peasy_cam/hello_peasy.rb
ruby-processing-2.5.1 samples/external_library/java_processing/peasy_cam/hello_peasy.rb
ruby-processing-2.5.0 samples/external_library/java_processing/peasy_cam/hello_peasy.rb
ruby-processing-2.4.4 samples/external_library/java_processing/peasy_cam/hello_peasy.rb
ruby-processing-2.4.3 samples/external_library/java_processing/peasy_cam/hello_peasy.rb
ruby-processing-2.4.2 samples/external_library/java_processing/peasy_cam/hello_peasy.rb
ruby-processing-2.4.1 samples/external_library/java_processing/peasy_cam/hello_peasy.rb