Data-Stag
view release on metacpan or search on metacpan
scripts/stag-drawtree.pl view on Meta::CPAN
my $width = $CW * $box->{x2};
my $height = $CH * $box->{y2};
my $im = new GD::Image($width, $height);
my $bgcol = $im->colorAllocate(255, 255, 255);
my $fgcol = $im->colorAllocate(0, 0, 0);
my $linecol = $im->colorAllocate(0, 0, 0);
my $namecol = $im->colorAllocate(0, 0, 0);
my $datacol = $im->colorAllocate(255, 0, 0);
#$im->transparent($bgcol);
$im->interlaced('true');
drawbox($im, $box);
if ($out) {
open(F, ">$out") || die($out);
print F $im->$fmt();
close(F);
}
else {
( run in 1.589 second using v1.01-cache-2.11-cpan-39bf76dae61 )