At My Fingertips

Documentation

Documentation

Function from library pytamaro

above(top_graphicbottom_graphic)

abovetop_graphicbottom_graphic

Creates a new graphic by placing the two graphics one above the other. The two graphics are horizontally centered.

The pinning position of the new graphic is at its center.

top_graphicgraphic to place on the top

bottom_graphicgraphic to place on the bottom

The resulting graphic after placing the two graphics one above the other
Code
show_graphic(above(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 4153f55 (Wed, 02 Apr 2025 06:58:19 GMT)