Tests pour faire une grille (Pas encore adaptable à la taille de la fenetre)
This commit is contained in:
parent
28e68f245e
commit
1b2212f447
19
test.c
Normal file
19
test.c
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#include <stdlib.h>
|
||||||
|
#include <graph.h>
|
||||||
|
|
||||||
|
|
||||||
|
int main(void){
|
||||||
|
int i,j;
|
||||||
|
InitialiserGraphique();
|
||||||
|
CreerFenetre(10,10,1000,1000);
|
||||||
|
ChoisirCouleurDessin(CouleurParComposante(255,0,0));
|
||||||
|
for (i=1;i<6;i+=1){
|
||||||
|
for (j=1;j<6;j+=1){
|
||||||
|
RemplirRectangle(i*100,j*100,50,50);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Touche();
|
||||||
|
FermerGraphique();
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user