Sha256: a4b4dabf74d0c596301242c8395f056431f9a1b2842a17f0c274dc2d46fd91e7
Contents?: true
Size: 602 Bytes
Versions: 3
Compression:
Stored size: 602 Bytes
Contents
# -*- coding: utf-8 -*- %w[../xot ../rucy ../rays ../reflex .] .map {|s| File.expand_path "../#{s}/lib", __dir__} .each {|s| $:.unshift s if !$:.include?(s) && File.directory?(s)} require 'test/unit' require 'xot/test' require 'processing/all' 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
processing-0.5.2 | test/helper.rb |
processing-0.5.1 | test/helper.rb |
processing-0.5.0 | test/helper.rb |