Documentation

Function defined in library pytamaro

graphic_width(graphic)

graphic_widthgraphic

Returns the width of a graphic.

graphicgraphic to calculate the width of

Width of the graphic
Code
graphic_width(rectangle(100, 50, red))
Result
100

PyTamaro logo

PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI

Privacy Policy • Platform Version 7dd0569a (October 21, 2026 at 7:47:45 AM UTC)