overlay
(
foreground_graphic
,
background_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_graphic
graphic in the foreground
background_graphic
graphic in the background
show_graphic(overlay(rectangle(50, 50, blue), rectangle(100, 50, 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)