dans un éditeur, entrez ce code et sauvegardez dans box.yab
open window 200,200
c=1
for i=1 to 4
for phi=0 to pi step 0.1
if (c) then
rectangle 100+100*sin(phi),100+100*cos(phi) to 100-100*sin(phi),100-100*cos(phi)
else
clear rectangle 100+100*sin(phi),100+100*cos(phi) to 100-100*sin(phi),100-100*cos(phi)
endif
sleep 0.1
next phi
c=not c
next
Dans un terminal tapez :
yabasic box.yam
Voici le résultat :