Sha256: 4a0c7c13528820c5090e6bacc4191040ade5944e4949dafa1b253a97712236e4

Contents?: true

Size: 467 Bytes

Versions: 6

Compression:

Stored size: 467 Bytes

Contents

# -*- coding: utf-8 -*-


%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

6 entries across 6 versions & 1 rubygems

Version Path
reflexion-0.1.35 samples/reflexion/hello.rb
reflexion-0.1.34 samples/reflexion/hello.rb
reflexion-0.1.33 samples/reflexion/hello.rb
reflexion-0.1.32 samples/reflexion/hello.rb
reflexion-0.1.31 samples/reflexion/hello.rb
reflexion-0.1.30 samples/reflexion/hello.rb