Sha256: 4b3b3a892ee7774ffe1a8ad489f948f2bda6478bb73d082ec778be12c27478d1

Contents?: true

Size: 577 Bytes

Versions: 20

Compression:

Stored size: 577 Bytes

Contents

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

require 'xot/test'
require 'processing/all'

require 'test/unit'

include Xot::Test


def assert_equal_vector(v1, v2, delta = 0.000001)
  assert_in_delta v1.x, v2.x, delta
  assert_in_delta v1.y, v2.y, delta
  assert_in_delta v1.z, v2.z, delta
end

def graphics(width = 10, height = 10, &block)
  Processing::Graphics.new(width, height).tap do |g|
    g.beginDraw {block.call g, g.getInternal__} if block
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
processing-0.5.27 test/helper.rb
processing-0.5.26 test/helper.rb
processing-0.5.25 test/helper.rb
processing-0.5.24 test/helper.rb
processing-0.5.23 test/helper.rb
processing-0.5.22 test/helper.rb
processing-0.5.21 test/helper.rb
processing-0.5.20 test/helper.rb
processing-0.5.19 test/helper.rb
processing-0.5.18 test/helper.rb
processing-0.5.17 test/helper.rb
processing-0.5.16 test/helper.rb
processing-0.5.14 test/helper.rb
processing-0.5.13 test/helper.rb
processing-0.5.12 test/helper.rb
processing-0.5.11 test/helper.rb
processing-0.5.10 test/helper.rb
processing-0.5.9 test/helper.rb
processing-0.5.8 test/helper.rb
processing-0.5.6 test/helper.rb