Sha256: 53be60eb28909f5f224bc62378b128dff6053bb52efd3a8fc40faba53e553b58

Contents?: true

Size: 543 Bytes

Versions: 44

Compression:

Stored size: 543 Bytes

Contents

require 'rvg/rvg'

rvg = Magick::RVG.new(400, 150) do |canvas|
    canvas.desc = "Example OrigCoordSys - Simple transformations: original picture"
    canvas.background_fill = 'white'

    canvas.g.styles(:fill=>'none', :stroke=>'black', :stroke_width=>3) do |grp|
        # Draw the axes of the original coordinate system
        grp.line(0, 1.5, 400, 1.5)
        grp.line(1.5, 0, 1.5, 150)
    end

    canvas.text(30, 30, 'ABC (orig coord system)').styles(:font_size=>20, :font_family=>'Verdana')

end

rvg.draw.write('OrigCoordSys.gif')

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
rmagick-1.10.0 doc/ex/OrigCoordSys.rb
rmagick-1.10.1 doc/ex/OrigCoordSys.rb
rmagick-1.11.1 doc/ex/OrigCoordSys.rb
rmagick-1.13.0 doc/ex/OrigCoordSys.rb
rmagick-1.11.0 doc/ex/OrigCoordSys.rb
rmagick-1.12.0 doc/ex/OrigCoordSys.rb
rmagick-1.15.0 doc/ex/OrigCoordSys.rb
rmagick-1.14.0 doc/ex/OrigCoordSys.rb
rmagick-1.14.1 doc/ex/OrigCoordSys.rb
rmagick-1.15.1 doc/ex/OrigCoordSys.rb
rmagick-1.15.10 doc/ex/OrigCoordSys.rb
rmagick-1.15.15 doc/ex/OrigCoordSys.rb
rmagick-1.15.12 doc/ex/OrigCoordSys.rb
rmagick-1.15.14 doc/ex/OrigCoordSys.rb
rmagick-1.15.13 doc/ex/OrigCoordSys.rb
rmagick-1.15.11 doc/ex/OrigCoordSys.rb
rmagick-1.15.16 doc/ex/OrigCoordSys.rb
rmagick-1.15.2 doc/ex/OrigCoordSys.rb
rmagick-1.15.17 doc/ex/OrigCoordSys.rb
rmagick-1.15.3 doc/ex/OrigCoordSys.rb