Sommaire


Installer et compiler ces fichiers dans votre répertoire de travail.

c00c.c
/* ------------------------------------ */
/*  Save as :   c00c.c                  */
/* ------------------------------------ */
#include  "x_hfile.h"
/* ------------------------------------ */
int main(void)
{
int n = 0;

CTRL_splot w;

  w.xmin = -10;
  w.xmax =  90;             
  w.ymin = -10;
  w.ymax =  50;	

pt2d    P0 = i_pt2d(20.,10.),
        P1 = i_pt2d(40.,40.),
        P2 = i_pt2d(60.,10.);

 clrscrn();
 
 printf("Open the file with gnuplot.    \n"
        "Use replot to see the animation\n");

 n = 0;
 
 while(n<80){ pause(9.E7);

    P1 = i_pt2d(n++,40.);

    G_quadratic_Bezier_2d(
             w,
             P0,P1,P2);}
 
  stop();

 return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */


Animer une courbe avec les trois points de contrôles.