require 'RMagick'
include Magick
# 出力画像サイズ
width=100
height=100
images = ImageList.new
images.new_image(1, 1){
self.background_color = "white";
}
images.new_image(1, 1){
self.background_color = "#99aaee";
}
images.append(true).
resize(width*2, height*2, PointFilter).
swirl(2560).crop(width/2, height/2,
width, height).
write("sample929a.png")
exit
出力画像(sample929a.png)

動作環境
ruby1.8.6, rmagick2.7.1
関連項目ImageMagickで渦巻き画像を生成する
No comments:
Post a Comment