#==============================================================================# # sample1.rb # $Id: sample1.rb,v 1.5 2002/11/14 12:50:14 yuya Exp $ #==============================================================================# #==============================================================================# require 'svg/svg' #==============================================================================# svg = SVG.new('4in', '4in', '0 0 400 400') svg << SVG::Rect.new(20, 20, 160, 160) svg << SVG::Rect.new(220, 20, 160, 160, 10, 10) svg << SVG::Circle.new(100, 300, 80) svg << SVG::Ellipse.new(300, 300, 80, 50) print svg.to_s #==============================================================================# #==============================================================================#