Bill Allombert on Sun, 21 Nov 2021 12:00:32 +0100


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

Re: GP movie


On Sun, Nov 21, 2021 at 11:05:29AM +0100, Vincent Delecroix wrote:
> 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?

Do you lke this one better ?

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

Cheers,
Bill