Sha256: ae925595b94fb4b59f3868330f4d682ad0cb6f7efb031e4737c7936abaf2b36b

Contents?: true

Size: 471 Bytes

Versions: 16

Compression:

Stored size: 471 Bytes

Contents

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


%w[xot beeps rays reflex]
  .map  {|s| File.expand_path "../../../../#{s}/lib", __FILE__}
  .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

16 entries across 16 versions & 1 rubygems

Version Path
reflexion-0.1.29 samples/reflexion/hello.rb
reflexion-0.1.28 samples/reflexion/hello.rb
reflexion-0.1.27 samples/reflexion/hello.rb
reflexion-0.1.26 samples/reflexion/hello.rb
reflexion-0.1.25 samples/reflexion/hello.rb
reflexion-0.1.24 samples/reflexion/hello.rb
reflexion-0.1.23 samples/reflexion/hello.rb
reflexion-0.1.22 samples/reflexion/hello.rb
reflexion-0.1.21 samples/reflexion/hello.rb
reflexion-0.1.20 samples/reflexion/hello.rb
reflexion-0.1.19 samples/reflexion/hello.rb
reflexion-0.1.17 samples/reflexion/hello.rb
reflexion-0.1.16 samples/reflexion/hello.rb
reflexion-0.1.15 samples/reflexion/hello.rb
reflexion-0.1.14 samples/reflexion/hello.rb
reflexion-0.1.13 samples/reflexion/hello.rb