Sha256: 0c617760afc61fffe2d969449d9c9c7e0dafd497cae8dbc0ac8b3df64eb6964a

Contents?: true

Size: 329 Bytes

Versions: 6

Compression:

Stored size: 329 Bytes

Contents

module Magick
  class GradientFill

    def fill(image)
      @fill.fill(image._image)
    end

    def initialize(x1, y1, x2, y2, start_color, end_color)
      @fill = Magick4J.GradientFill.new(x1, y1, x2, y2, Magick4J.ColorDatabase.queryDefault(start_color), Magick4J.ColorDatabase.queryDefault(end_color))
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rmagick4j-0.4.0-java lib/rmagick4j/gradient_fill.rb
rmagick4j-0.3.9-java lib/rmagick4j/gradient_fill.rb
rmagick4j-0.3.8 lib/rmagick4j/gradient_fill.rb
rmagick4j-0.3.5 lib/rmagick4j/gradient_fill.rb
rmagick4j-0.3.6 lib/rmagick4j/gradient_fill.rb
rmagick4j-0.3.7 lib/rmagick4j/gradient_fill.rb