Sha256: 6abd397908b1a2b75ad7ca08b8063f665d50453e133e5ccb4ad93a0e949f8f6e

Contents?: true

Size: 412 Bytes

Versions: 8

Compression:

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


y = 0

draw do
  stroke :white
  lines *(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

8 entries across 8 versions & 1 rubygems

Version Path
reflexion-0.1.21 samples/reflexion/noise.rb
reflexion-0.1.20 samples/reflexion/noise.rb
reflexion-0.1.19 samples/reflexion/noise.rb
reflexion-0.1.17 samples/reflexion/noise.rb
reflexion-0.1.16 samples/reflexion/noise.rb
reflexion-0.1.15 samples/reflexion/noise.rb
reflexion-0.1.14 samples/reflexion/noise.rb
reflexion-0.1.13 samples/reflexion/noise.rb