At My Fingertips

Documentation

Documentation

Function from library pytamaro

overlay(foreground_graphicbackground_graphic)

overlayforeground_graphicbackground_graphic

Creates a new graphic by overlaying the two provided graphics, keeping the first one in the foreground and the second one in background. The two graphics are overlaid on their centers.

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

foreground_graphicgraphic in the foreground

background_graphicgraphic in the background

The resulting graphic after overlaying the two provided ones
Code
show_graphic(overlay(rectangle(50, 50, blue), rectangle(100, 50, red)))
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)