Sha256: 6708c424a1a2fc05cf10d8093a1fb329a57b1cf7c6c2c1a5a2b969969d09ef90

Contents?: true

Size: 346 Bytes

Versions: 16

Compression:

Stored size: 346 Bytes

Contents

# Taken from the Processing Examples.
  
def setup
  size 200, 200, P3D
  no_stroke
  color_mode RGB, 1
  fill 0.4
end

def draw
  background          0
  translate           width/2, height/2 
  light_specular      1, 1, 1
  directional_light   0.8, 0.8, 0.8, 0, 0, -1
  specular            mouse_x.to_f / width.to_f
  sphere              50
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ruby-processing-2.6.3 samples/contributed/reflection.rb
ruby-processing-2.6.2 samples/contributed/reflection.rb
ruby-processing-2.6.1 samples/contributed/reflection.rb
ruby-processing-2.6.0 samples/contributed/reflection.rb
ruby-processing-2.5.1 samples/contributed/reflection.rb
ruby-processing-2.5.0 samples/contributed/reflection.rb
ruby-processing-2.4.4 samples/contributed/reflection.rb
ruby-processing-2.4.3 samples/contributed/reflection.rb
ruby-processing-2.4.2 samples/contributed/reflection.rb
ruby-processing-2.4.1 samples/contributed/reflection.rb
ruby-processing-1.0.11 samples/contributed/reflection.rb
ruby-processing-1.0.10.1 samples/contributed/reflection.rb
ruby-processing-1.0.9 samples/reflection.rb
ruby-processing-1.0.6 samples/reflection.rb
ruby-processing-1.0.7 samples/reflection.rb
ruby-processing-1.0.8 samples/reflection.rb