Au cas où les utilisateurs n'auraient pas vu, le fonctionnement de trembling a été modifié.
Avant le code suivant fonctionnait :
Code : Tout sélectionner
import trembling;
size(8cm);
path cle=unitcircle;
/* View the definition of path tremble(path,real,real,real,real) */
path tcle=tremble(cle,frequency=0.25,random=1);
draw(tcle);
path tri=(-1,-0.5)--(1,-0.5)--(0,0.75)--cycle;
path ttri=tremble(tri,frequency=0.5,random=1.5);
draw(ttri);
shipout(bbox(3mm,invisible));
Code : Tout sélectionner
import trembling;
size(8cm);
path cle=unitcircle;
/* View the definition of path tremble(path,real,real,real,real) */
tremble tr=tremble(frequency=0.25,random=1);
draw(tr.deform(cle));
path tri=(-1,-0.5)--(1,-0.5)--(0,0.75)--cycle;
tremble tr1=tremble(frequency=0.25,random=1.5);
path ttri=tr1.deform(tri);
draw(ttri);
shipout(bbox(3mm,invisible));