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

PyTamaro logo

PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI

Privacy Policy • Platform Version 3217fcf4 (November 24, 2026 at 6:34:26 AM UTC)