Sha256: 3655b7c755ad651e134b17375f195482e48d4d8c5ff9c073a236c3a60176cf81

Contents?: true

Size: 381 Bytes

Versions: 25

Compression:

Stored size: 381 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'


y = 0

draw do
  stroke :white
  line *(0..200).map {|x|
    xx = x * 5
    yy = 200 + Rays.perlin(x / 10.0, y / 100.0) * 100
    [xx, yy]
  }
  y += 1

  text "#{event.fps.to_i} FPS", 10, 10
end

Version data entries

25 entries across 25 versions & 1 rubygems

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