beside(left_graphic, right_graphic)
Creates a new graphic by placing the two graphics one besides the other. The two graphics are vertically centered.
The pinning position of the new graphic is at its center.
left_graphicgraphic to place on the left
right_graphicgraphic to place on the right
show_graphic(beside(rectangle(100, 50, red), rectangle(50, 50, blue)))
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)