Sha256: 24b6546309a2d76be49925f71809ba79786aed503e84b4293d4d3849c8754270

Contents?: true

Size: 381 Bytes

Versions: 10

Compression:

Stored size: 381 Bytes

Contents

# Move Eye. 
# by Simon Greenwold.
# 
# The camera lifts up (controlled by mouseY) while looking at the same point.



def setup
  size 640, 360, P3D
  fill 204
end

def draw
  lights
  background 0    
  camera 30, mouseY, 220, 0, 0, 0, 0, 1, 0    
  noStroke
  box 90
  stroke 255
  line( -100, 0, 0, 100, 0, 0)
  line( 0, -100, 0, 0, 100, 0)
  line( 0, 0, -100, 0, 0, 100)
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ruby-processing-2.6.3 samples/processing_app/basics/camera/move_eye.rb
ruby-processing-2.6.2 samples/processing_app/basics/camera/move_eye.rb
ruby-processing-2.6.1 samples/processing_app/basics/camera/move_eye.rb
ruby-processing-2.6.0 samples/processing_app/basics/camera/move_eye.rb
ruby-processing-2.5.1 samples/processing_app/basics/camera/move_eye.rb
ruby-processing-2.5.0 samples/processing_app/basics/camera/move_eye.rb
ruby-processing-2.4.4 samples/processing_app/basics/camera/move_eye.rb
ruby-processing-2.4.3 samples/processing_app/basics/camera/move_eye.rb
ruby-processing-2.4.2 samples/processing_app/basics/camera/move_eye.rb
ruby-processing-2.4.1 samples/processing_app/basics/camera/move_eye.rb