float angleX,angleY,bangleX,bangleY,scal,scal1,tempo; Croisillon letreillage,letreillage1; void setup(){ size(750,400); noStroke(); letreillage=new Croisillon(800,730,2.9f); //letreillage1=new Croisillon(380,540,3); tempo=0; } void loop(){ tempo+=0.1f; background(255*sin(tempo),150*cos(tempo),0); translate(500,-7500,-13000); letreillage.dessiner(30,30); } // ++++++++++++++++++++++++++++++++++++++++ // ++++++++++++++++++++++++++++++++++++++++ class Croisillon{ float a,b,n,na,nb,tempo,aa,bb,naa,nbb,nn,cor,sor; public Croisillon(float a,float b,float n){ this.aa=a; this.bb=b; this.nn=n; tempo=0; } void recalculer(){ tempo+=0.05f; a=aa+400*cos(tempo); b=bb+400*cos(tempo*2); n=nn+1.6f*cos(tempo*0.7f); na=a*n; nb=b*n; cor=255*cos(tempo)*cos(tempo); sor=255*sin(tempo)*sin(tempo); } void dessiner(int maxx,int maxy){ recalculer(); for(int i=-maxx;i