ajout de couleur de fond
This commit is contained in:
parent
6dd1ee2614
commit
26cea5be25
@ -1,16 +1,17 @@
|
||||
#include<stdlib.h>
|
||||
#include<graph.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
//création de la fenêtre de jeu
|
||||
|
||||
int main(){
|
||||
InitialiserGraphique();
|
||||
CreerFenetre(100, 180, 1200, 800);
|
||||
Touche();
|
||||
CreerFenetre(10,10,1200,800);
|
||||
couleur CouleurParComposante(unsigned char r, unsigned char v, unsigned char b);
|
||||
couleur c;
|
||||
c=CouleurParComposante(255,0,0);
|
||||
c=CouleurParComposante(0,0,0);
|
||||
EffacerEcran(c);
|
||||
c=CouleurParComposante(141,199,63);
|
||||
ChoisirCouleurDessin(c);
|
||||
RemplirRectangle(10,10,1180,700);
|
||||
Touche();
|
||||
FermerGraphique();
|
||||
return EXIT_SUCCESS;
|
||||
}
|
Loading…
Reference in New Issue
Block a user