- or download this
$acnv->rotate(TagOrID, angle ?,x, y?)
This method rotates the object identified by TagOrID by angle. The ang
+le is specified in degrees. If an x, y coordinate is specified, then
+the object is rotated about that point. Otherwise, the object is rota
+ted about its center point, if that can be determined.
- or download this
As it stands, the module can only rotate the following object types ab
+out their centers:
...
Rectangles (if rectToPoly(1) is called)
Ovals (if ovalToPoly(1) is called)
All other object types (bitmap, image, arc, text, && window) can only
+be rotated about another point. A warning is issued if the user tries
+ to rotate one of these object types about their center. Hopefully, m
+ore types will be able to center-rotate in the future.
- or download this
use Tk;
use Tk::AbstractCanvas;
...
MainLoop;
();