Name

setPt( ) — move an existing vertex of a polygon

Synopsis

GD::Polygon::setPt(index, x, y)

This method allows you to change the coordinates of a particular point that has already been added to a polygon object. The method will return a warning message if the point with the given index does not exist.

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.