2023-11-21 12:20:06 +01:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <graph.h>
|
|
|
|
|
2023-11-21 14:36:58 +01:00
|
|
|
#define HAUTEUR 40
|
|
|
|
#define LARGEUR 60
|
|
|
|
|
2023-11-21 12:20:06 +01:00
|
|
|
int AfficherRectangle(){
|
|
|
|
InitialiserGraphique();
|
|
|
|
CreerFenetre(10,10,1500,1000);
|
2023-11-21 14:36:58 +01:00
|
|
|
ChoisirCouleurDessin(CouleurParComposante(0,0,0));
|
|
|
|
RemplirRectangle(0,0,1500,1000);
|
|
|
|
ChoisirCouleurDessin(CouleurParComposante(73,162,37));
|
|
|
|
RemplirRectangle(20,20,1450, 800);
|
2023-11-21 12:20:06 +01:00
|
|
|
Touche();
|
|
|
|
FermerGraphique();
|
|
|
|
}
|
|
|
|
int main(){
|
|
|
|
AfficherRectangle();
|
2023-11-21 14:36:58 +01:00
|
|
|
AfficherCadrillage();
|
2023-11-21 12:20:06 +01:00
|
|
|
return EXIT_SUCCESS;
|
|
|
|
}
|