Sha256: fefc65be0a8dfec66172a8adeae53abf37b86c2b5d48dc5237e82aafa348849e

Contents?: true

Size: 319 Bytes

Versions: 10

Compression:

Stored size: 319 Bytes

Contents

def setup
  size(400, 400, P3D) 
  smooth(2)
end

def draw
  background(255, 0, 0)
  ellipse(mouse_x, mouse_y, 100, 100)  
end

def key_pressed 
  case key
  when '1'
    smooth(1)
  when '2'
    smooth(2)
  when '3'
    smooth(4)
  when '4'
    smooth(8)
  when '5'
    smooth(16)
  when '6'
    smooth(32)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ruby-processing-2.6.3 samples/processing_app/demos/tests/smooth_test.rb
ruby-processing-2.6.2 samples/processing_app/demos/tests/smooth_test.rb
ruby-processing-2.6.1 samples/processing_app/demos/tests/smooth_test.rb
ruby-processing-2.6.0 samples/processing_app/demos/tests/smooth_test.rb
ruby-processing-2.5.1 samples/processing_app/demos/tests/smooth_test.rb
ruby-processing-2.5.0 samples/processing_app/demos/tests/smooth_test.rb
ruby-processing-2.4.4 samples/processing_app/demos/tests/smooth_test.rb
ruby-processing-2.4.3 samples/processing_app/demos/tests/smooth_test.rb
ruby-processing-2.4.2 samples/processing_app/demos/tests/smooth_test.rb
ruby-processing-2.4.1 samples/processing_app/demos/tests/smooth_test.rb