Code is dirty !!
fleur fleur22 = new fleur(22, 22);
fleur fleur50 = new fleur(30,50);
Hexagone hexagone80 = new Hexagone(56);
QuadriTrap monmotif = new QuadriTrap();
void setup()
{
size(2000,1000);
smooth();
noLoop();
stroke(255,0,0);
translate(width/2, height/2);
translate(-500, -200);
scale(0.5, 0.5);
rotate(radians(-30));
//--------------ligne 1 ----------------------------->
for (int m = 0; m < 3; m = m + 1)
{
translate(390,230);
pushMatrix();
//------------------- motif central ----------------->
//----- fleur ----->
pushMatrix();
translate(width/2, height/2);
translate(-960,-270);
fleur50.display();
popMatrix();
//----- motif------------------->
pushMatrix();
for (int i = 0; i <6; i=i+1){
monmotif.display();
translate (215,82);
rotate(radians(60));
}
popMatrix();
//---------------- end motif czentral -------------->
//------------------Hexagone------------------------>
// translate(0,21);
translate(-763,-150);
// rotate(radians(30));
//----- motif haut ----->
pushMatrix();
// translate(-220,-435);
translate(-463,-460);
scale(1.2,1.2);
pushMatrix();
translate(width/2, height/2);
rotate(radians(90));
hexagone80.display();
popMatrix();
//----- fleur ----->
pushMatrix();
translate(width/2, height/2);
translate(-58, 0);
fleur22.display();
popMatrix();
popMatrix();
// -------------------end Hexagone ----------------->
popMatrix();
} // end for
saveFrame("figure.jpg");
}
I would have liked to show the resulting picture but did not find how to !!