Hs_diagcrossのパターン画像をPerlモジュールのImage::Magickで生成
PerlモジュールのImage::Magickを使用して、Hs_diagcrossのパターン画像を出力しました。
#!/opt/local/bin/perl
use strict;
use warnings;
use Image::Magick;
my $image = Image::Magick->new(magick => "png");
$image->Set("480x360");
$image->ReadImage("pattern:Hs_diagcross");
print "Content-type: image/png\n\n";
binmode STDOUT;
$image -> Write("png:-");
undef $image;
exit;
サンプルコードと出力結果です。Hs_diagcrossのパターンを描画した画像を出力しました。