Glisser pour tourner!°

 Glisser  pour tourner.  Scroller  pour zoomer.

Personalise ton ressort.

void choose(){ int o=(int) random(0,10000); PlusouMoins(); XouY(); int r=(int) random(0,255); fill(r,r,r); if (x<0 || x>1250){ x=(int) random(0,1250); } if(y<0 || y>550){ y=(int) random(0,550); } if (o==1){ y=(int) random(0,550); x=(int) random(0,1250); } } void PlusouMoins(){ int z=(int) random(0,10); if (z>4){ p=+2; w=2; } else { p=-2; w=1; } } void XouY(){ int n=(int) random(0,10); if (n<5){ x=x+p; v=2; } else { y=y+p; v=1; } } void repeat(){ if (v==2&&w==2){ x=x+2; } if (v==2&&w==1){ x=x-2; } if (v==1&&w==2){ y=y+2; } if (v==1&&w==1){ y=y+p; } }