rotate
(
angle
,
graphic
)
Creates a new graphic by rotating counterclockwise the provided graphic around its pinning position by the given angle. A negative angle corresponds to a clockwise rotation.
angle
angle of counterclockwise rotation, in degrees
graphic
the graphic to rotate
show_graphic(rotate(15, text('PyTamaro', 'Fira Sans', 24, red)))
show_graphic(rotate(-30, text('PyTamaro', 'Fira Sans', 24, red)))
PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI
Privacy Policy • Platform Version ede3c94 (Fri, 23 May 2025 14:43:18 GMT)