Documentation

Function defined in library pytamaro.fr

rectangle(largeur, hauteur, couleur)

rectanglelargeurhauteurcouleur

Crée un rectangle de dimensions indiquées et rempli avec la couleur donnée.

largeurlargeur du rectangle

hauteurhauteur du rectangle

couleurcouleur qui remplira le rectangle

Un graphique avec le rectangle spécifié
Code
montre_graphique(rectangle(100, 60, vert))
Output
Graphical output from execution result
Code
montre_graphique(rectangle(50, 50, rouge))
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 0a56f08d (Wed, 29 Apr 2026 08:58:46 GMT)