Sha256: 0ca3910505f5cd2900042971584d4bbfbda2ba6c298c673fc5074737eb1d487a

Contents?: true

Size: 441 Bytes

Versions: 25

Compression:

Stored size: 441 Bytes

Contents

%w[xot beeps rays reflex]
  .map  {|s| File.expand_path "../../../#{s}/lib", __dir__}
  .each {|s| $:.unshift s if !$:.include?(s) && File.directory?(s)}

require 'reflexion/include'


gray  = 0
array = []

draw do
  gray += 0.01
  gray %= 1
  background gray
  array.unshift event.fps
  array.slice! 32..-1
  text "#{array.reduce(0) {|sum, n| sum + n}.tap {|n| break n / array.size}.to_i} FPS", 10, 30
  text "#{event.fps} FPS", 10, 10
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
reflexion-0.3 samples/reflexion/hello.rb
reflexion-0.2.1 samples/reflexion/hello.rb
reflexion-0.2 samples/reflexion/hello.rb
reflexion-0.1.57 samples/reflexion/hello.rb
reflexion-0.1.56 samples/reflexion/hello.rb
reflexion-0.1.55 samples/reflexion/hello.rb
reflexion-0.1.54 samples/reflexion/hello.rb
reflexion-0.1.53 samples/reflexion/hello.rb
reflexion-0.1.52 samples/reflexion/hello.rb
reflexion-0.1.51 samples/reflexion/hello.rb
reflexion-0.1.50 samples/reflexion/hello.rb
reflexion-0.1.49 samples/reflexion/hello.rb
reflexion-0.1.48 samples/reflexion/hello.rb
reflexion-0.1.47 samples/reflexion/hello.rb
reflexion-0.1.46 samples/reflexion/hello.rb
reflexion-0.1.45 samples/reflexion/hello.rb
reflexion-0.1.44 samples/reflexion/hello.rb
reflexion-0.1.43 samples/reflexion/hello.rb
reflexion-0.1.42 samples/reflexion/hello.rb
reflexion-0.1.41 samples/reflexion/hello.rb