début
This commit is contained in:
22
main.c
Normal file
22
main.c
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <graph.h>
|
||||||
|
#define TAILLE_CASE 15
|
||||||
|
#define NBR_LIGNE 40
|
||||||
|
#define NBR_COLONNE 60
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
int case_ligne,case_colonne;
|
||||||
|
couleur c;
|
||||||
|
c=CouleurParComposante(100,250,100);
|
||||||
|
InitialiserGraphique();
|
||||||
|
CreerFenetre(400,225,900,600);
|
||||||
|
EffacerEcran(c);
|
||||||
|
for (case_ligne=0;case_ligne<NBR_LIGNE;case_ligne++){
|
||||||
|
for (case_colonne=0;case_colonne<NBR_COLONNE;case_colonne++)
|
||||||
|
DessinerRectangle(case_ligne*TAILLE_CASE,case_colonne*TAILLE_CASE,TAILLE_CASE,TAILLE_CASE);
|
||||||
|
}
|
||||||
|
Touche();
|
||||||
|
FermerGraphique();
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user