Documentation

Function from library pytamaro

beside(left_graphicright_graphic)

besideleft_graphicright_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

The resulting graphic after placing the two graphics one besides the other
Code
show_graphic(beside(rectangle(100, 50, red), rectangle(50, 50, blue)))
Output
Graphical output from execution result

Logo of PyTamaro

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

Privacy PolicyPlatform Version 51a7c2e (Tue, 22 Apr 2025 08:35:06 GMT)