ajout bibliothèque graphique

This commit is contained in:
SAE11_2023
2023-11-21 13:13:26 +01:00
parent cd37013ec3
commit b75c137aa5
56 changed files with 52207 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
#include<stdio.h>
#include<graph.h>
int main(void)
{
int x=100,y=100,x1,y1;
InitialiserGraphique();
CreerFenetre(700,100,500,500);
EffacerEcran(CouleurParNom("white"));
while(!SourisCliquee());
x=_X;
y=_Y;
while(1)
{
if (SourisCliquee())
{
DessinerSegmentC(_X,_Y,x,y,CouleurParComposante(rand()%256,rand()%256,rand()%256));
x=_X;
y=_Y;
}
if (ToucheEnAttente()) break;
}
FermerGraphique();
}