Documentation

Function defined in library pytamaro.fr

couleur_rgb(rouge, vert, bleu)

couleur_rgbrougevertbleu

Retourne une couleur avec les composantes indiquant le rouge (R), vert (G) et bleu (B) et un certain taux d’opacité (alpha, A).

Cube RGB (SharkD via Wikimedia Commons)Cube RGB (SharkD via Wikimedia Commons)

rougecomposante rouge [0-255]

vertcomposante verte [0-255]

bleucomposante bleue [0-255]

Une couleur avec les composantes RGBA données
Code
montre_graphique(rectangle(50, 50, couleur_rgb(255, 0, 0)))
Output
Graphical output from execution result
Code
montre_graphique(rectangle(50, 50, couleur_rgb(0, 255, 0)))
Output
Graphical output from execution result
Code
montre_graphique(rectangle(50, 50, couleur_rgb(127, 127, 127)))
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)