Vincent Delecroix on Sun, 21 Nov 2021 11:07:58 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: GP movie


Le 20/11/2021 à 18:09, Bill Allombert a écrit :
Dear PARI lovers,

I offer this GP script which is actually a short movie...

install(usleep,vU);
for(i=1,1000,plot(h=0,i,sin(h)^2);print(i);usleep(40000);print("\e[H\e[2J"))


Another one:

install(usleep,vU);
for(i=1,1000,plot(h=0,i,besselj(0,h));print(i);usleep(40000);print("\e[H\e[2J"))

Cheers,
Bill.

Nice !

Clearing the screen is overkill and produces a lot of flickering.
Wouldn't it be possible to compute the diff between two successive
plots and only rewrite the characters that need to be?

Best
Vincent