Sha256: 2b888679b0e6095e8c71fbf3cafa24a39911d782e5118838571714d46708c0eb

Contents?: true

Size: 194 Bytes

Versions: 4

Compression:

Stored size: 194 Bytes

Contents

java_alias :background_int, :background, [Java::int]

def setup
  size(300, 300, P2D)
  frame_rate(10)
end

def draw 
  background_int 255
  if frame_count == 3
    puts "ok"
    exit
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby-processing-2.4.4 test/p2d.rb
ruby-processing-2.4.3 test/p2d.rb
ruby-processing-2.4.2 test/p2d.rb
ruby-processing-2.4.1 test/p2d.rb