Sha256: d2b6859134a4b93dd2a0394893f0c294d0a4ed6c81dc3b5a6491888a9586bb9f
Contents?: true
Size: 644 Bytes
Versions: 52
Compression:
Stored size: 644 Bytes
Contents
#! /usr/local/bin/ruby -w require 'RMagick' imgl = Magick::ImageList.new imgl.new_image(250, 250, Magick::HatchFill.new('white','LightCyan2')) gc = Magick::Draw.new # Draw the circle gc.fill_opacity(0) gc.stroke('red').stroke_width(3) gc.circle(125,125, 25, 125) # Draw a little gray circle on the perimeter gc.stroke_width(1) gc.stroke('gray50') gc.circle(25,125,28,128) # Draw a dot at the center gc.fill_opacity(1) gc.circle(125,125, 128,128) # Annotate the dots gc.fill('black') gc.stroke('transparent') gc.text(132,125, "'125,125'") gc.text(32,125, "'25,125'") gc.draw(imgl) imgl.border!(1,1, 'lightcyan2') imgl.write("circle.gif")
Version data entries
52 entries across 52 versions & 1 rubygems