Mathc initiation/a262
Apparence
Installer et compiler ces fichiers dans votre répertoire de travail.
c00b.c |
---|
/* ------------------------------------ */
/* Save as : c00b.c */
/* ------------------------------------ */
#include "x_hfile.h"
/* ------------------------------------ */
int main(void)
{
int n = 0;
CTRL_splot w;
w.xmin = -1;
w.xmax = 100;
w.ymin = -1;
w.ymax = 50;
pt2d P0 = i_pt2d(60.,10.),
P1 = i_pt2d(20.,10.),
P2 = i_pt2d(20.,30.),
P3 = i_pt2d(60.,30.);
printf(" ... load \"a_main.plt\" ... with gnuplot. \n\n"
"Use replot to see the animation\n\n");
while(n<100){ pause(9.E7);
P1 = i_pt2d((n++),40.);
P2 = i_pt2d((-n+80),40.);
G_Cubic_Bezier_2d(
w,
P0,P1,P2,P3
);
}
return 0;
}
/* ------------------------------------ */
/* ------------------------------------ */
Une animation.