Sha256: 2bdc802f31fee13557e8826eaabb2d370d1cbc5f0aee1625835a4fed3a8ff5d6

Contents?: true

Size: 391 Bytes

Versions: 6

Compression:

Stored size: 391 Bytes

Contents

# Ruby2D::Pixel

module Ruby2D
  class Pixel

    def self.draw(opts = {})
      ext_draw([
        opts[:x]              , opts[:y],
        opts[:x] + opts[:size], opts[:y],
        opts[:x] + opts[:size], opts[:y] + opts[:size],
        opts[:x]              , opts[:y] + opts[:size],
        opts[:color][0], opts[:color][1], opts[:color][2], opts[:color][3]
      ])
    end

  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
ruby2d-0.11.3 lib/ruby2d/pixel.rb
ruby2d-0.11.2 lib/ruby2d/pixel.rb
ruby2d-rpeck-windows-0.11.1 lib/ruby2d/pixel.rb
ruby2d-0.11.1 lib/ruby2d/pixel.rb
ruby2d-0.11.0 lib/ruby2d/pixel.rb
ruby2d-0.10.0 lib/ruby2d/pixel.rb