2023-11-21 13:28:42 +01:00
|
|
|
#include<stdlib.h>
|
|
|
|
#include<graph.h>
|
|
|
|
|
2023-11-21 13:58:39 +01:00
|
|
|
int main(){
|
2023-11-21 14:05:37 +01:00
|
|
|
|
|
|
|
/* taille de la fenêtre */
|
2023-11-21 13:28:42 +01:00
|
|
|
InitialiserGraphique();
|
2023-11-21 13:58:39 +01:00
|
|
|
CreerFenetre(10,10,1200,800);
|
2023-11-21 14:05:37 +01:00
|
|
|
|
|
|
|
/* Couleur de la fenêtre */
|
2023-11-21 13:58:39 +01:00
|
|
|
couleur CouleurParComposante(unsigned char r, unsigned char v, unsigned char b);
|
2023-11-21 13:43:09 +01:00
|
|
|
couleur c;
|
2023-11-21 13:58:39 +01:00
|
|
|
c=CouleurParComposante(0,0,0);
|
|
|
|
EffacerEcran(c);
|
|
|
|
c=CouleurParComposante(141,199,63);
|
2023-11-21 13:43:09 +01:00
|
|
|
ChoisirCouleurDessin(c);
|
2023-11-21 13:58:39 +01:00
|
|
|
RemplirRectangle(10,10,1180,700);
|
2023-11-21 14:05:37 +01:00
|
|
|
|
|
|
|
/* fermeture de la fenêtre */
|
2023-11-21 13:58:39 +01:00
|
|
|
Touche();
|
2023-11-21 13:28:42 +01:00
|
|
|
FermerGraphique();
|
2023-11-21 14:05:37 +01:00
|
|
|
|
2023-11-21 13:28:42 +01:00
|
|
|
return EXIT_SUCCESS;
|
2023-11-20 16:39:52 +01:00
|
|
|
}
|