GD-SVG
view release on metacpan or search on metacpan
if ($color_index eq 'gdStyled' || $color_index eq 'gdBrushed') {
my $fg = $self->_distill_gdSpecial($color_index);
$self->line($x1,$y1,$x2,$y2,$fg);
} else {
###GD### $self->{gd}->line($x1,$y1,$x2,$y2,$color_index);
my ($img,$id) = $self->_prep($x1,$y1);
my $style = $self->_build_style($id,$color_index,$color_index);
# Suggested patch by Jettero to fix lines
# that don't go to the ends of their length.
# This could possibly be relocated to _build_style
# but I'm unsure of the ramifications on other features.
$style->{'stroke-linecap'} = 'square';
my $result = $img->line(x1=>$x1,y1=>$y1,
x2=>$x2,y2=>$y2,
id=>$id,
style => $style,
);
$self->_reset();
return $result;
}
( run in 0.774 second using v1.01-cache-2.11-cpan-71847e10f99 )