Name

delete( ) — remove a vertex of a polygon

Synopsis

GD::Polygon:delete(index)

This method deletes the vertex at the given index and decrements the index of those vertices after the deleted vertex. The delete( ) method returns a list containing the coordinates of the deleted point.

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.