At My Fingertips

Documentation

Documentation

Function from library pytamaro

rectangle(widthheightcolor)

rectanglewidthheightcolor

Creates a rectangle of the given size, filled with a color.

widthwidth of the rectangle

heightheight of the rectangle

colorthe color to be used to fill the rectangle

The specified rectangle as a graphic
Code
show_graphic(rectangle(100, 60, green))
Output
Graphical output from execution result
Code
show_graphic(rectangle(50, 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)