Name
addLine( ) — add a line to the object
Synopsis
$e->addArc( points =>[ $startx, $starty, $endx, $endy],
linewidth =>$linewidth,
linetint =>$linetint
)
The addLine( )
method will
draw a line between two points. It takes up to three
parameters (note that a filltint parameter is simply ignored):
-
points
The
points
attribute should be given an anonymous array with the coordinate of the starting point (startx, starty) and the end point (endx, endy).-
linewidth
The
linewidth
attribute functions as described foraddArc( )
.-
linetint
The
linetint
attribute functions as described foraddArc( )
.
Get Programming Web Graphics with Perl and GNU Softwar now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.