Graphic problem
Feu un programa que dibuixi un tauler rectangular amb un triangle.
L’entrada consisteix en dos noms de color i , i de tres naturals , i . Podeu assumir , i .
Cal generar una imatge de color de fons . Pinteu-hi un triangle de color de base , alçada , i que tingui el pic del marge superior de la imatge al punt horitzontal .
Input
Beige Red 500 300 400
Output
(500×300)
Input
Plum GreenYellow 18 8 5
Output
(18×8)