added whole system from ola4doc

This commit is contained in:
Bachir Soussi Chiadmi
2017-12-14 17:06:06 +01:00
parent 9646c74be1
commit 0611418f7a
8725 changed files with 817688 additions and 2 deletions
@@ -0,0 +1,62 @@
void module() {
if ( hu >= 0) {
hu +=0.1;
}
if ( hu > 360) {
hu = 0;
}
if ( ha >= 0) {
hu +=0.1;
}
if ( ha > 10) {
hu = 0;
}
if ( hi >= 0) {
hi +=0.005;
}
if ( hi > 100) {
hi = 0;
}
fill(0);
stroke(200, 0, hi);
strokeWeight(50);
beginShape();
vertex(x1, y1, 0);
vertex(x2, y2, 0);
vertex(x3, y3, 0);
vertex(x4, y4, 0);
vertex(x1, y1, 0);
float r2 = random(100);
if (r2 > 0 && r2 < 25 ) {
x1+=d;
x2+=d;
x3-=d;
x4-=d;
s-=0.0005;
} else if (r2 > 25 && r2 < 50 ) {
x1-=d;
x2-=d;
x3+=d;
x4+=d;
s+=0.0005;
} else if (r2 > 50 && r2 < 75) {
y1+=d;
y2+=d;
y3+=d;
y4+=d;
s-=0.0005;
} else {
y1-=d;
y2-=d;
y3-=d;
y4-=d;
s+=0.0005;
}
endShape();
println(hu, ha, hi);
}
@@ -0,0 +1,155 @@
float x1 = 0;
float y1 = 0;
float x2 = 500;
float y2 = 0;
float x3 = 500;
float y3 = 500;
float x4 = 0;
float y4 = 500;
float z= 500;
float hu = random(360);
float hi = random(25, 75);
float ha = random(25, 75);
float d = 5; // déplacement des points du carré
float s = 0.2;
void setup() {
colorMode(HSB, 360, 100, 100);
size(1665, 1665, P3D);
fill(0);
rect(0, 0, width, height);
smooth();
noStroke();
}
void draw() {
pushMatrix();
translate(width/(6*-2), (height/(6*-2)));
scale(s);
module();
popMatrix();
pushMatrix();
translate(width/6, (height/(6*-2)));
scale(s);
module();
popMatrix();
pushMatrix();
translate(width/6, height/6);
scale(s);
module();
popMatrix();
pushMatrix();
translate(width/(6*-2), height/6);
scale(s);
module();
popMatrix();
pushMatrix();
translate(width/6, (height/6)*2.5);
scale(s);
module();
popMatrix();
pushMatrix();
translate(width/6, (height/6)*4);
scale(s);
module();
popMatrix();
pushMatrix();
translate(width/6, (height/6)*5.5);
scale(s);
module();
popMatrix();
pushMatrix();
translate(width/(6*-2), (height/6)*2.5);
scale(s);
module();
popMatrix();
pushMatrix();
translate(width/(6*-2), (height/6)*4);
scale(s);
module();
popMatrix();
pushMatrix();
translate(width/(6*-2), (height/6)*5.5);
scale(s);
module();
popMatrix();
pushMatrix();
translate((width/6)*2.5, height/6);
scale(s);
module();
popMatrix();
pushMatrix();
translate((width/6)*2.5, height/(6*-2));
scale(s);
module();
popMatrix();
pushMatrix();
translate((width/6)*4, height/(6*-2));
scale(s);
module();
popMatrix();
pushMatrix();
translate((width/6)*5.5, height/(6*-2));
scale(s);
module();
popMatrix();
pushMatrix();
translate((width/6)*2.5, (height/6)*2.5);
scale(s);
module();
popMatrix();
pushMatrix();
translate((width/6)*2.5, (height/6)*4);
scale(s);
module();
popMatrix();
pushMatrix();
translate((width/6)*2.5, (height/6)*5.5);
scale(s);
module();
popMatrix();
pushMatrix();
translate((width/6)*4, (height/6));
scale(s);
module();
popMatrix();
pushMatrix();
translate((width/6)*4, (height/6)*2.5);
scale(s);
module();
popMatrix();
pushMatrix();
translate((width/6)*4, (height/6)*4);
scale(s);
module();
popMatrix();
pushMatrix();
translate((width/6)*4, (height/6)*5.5);
scale(s);
module();
popMatrix();
pushMatrix();
translate((width/6)*5.5, (height/6));
scale(s);
module();
popMatrix();
pushMatrix();
translate((width/6)*5.5, (height/6)*2.5);
scale(s);
module();
popMatrix();
pushMatrix();
translate((width/6)*5.5, (height/6)*4);
scale(s);
module();
popMatrix();
pushMatrix();
translate((width/6)*5.5, (height/6)*5.5);
scale(s);
module();
popMatrix();
if (keyPressed) {
if (key == 's')
saveFrame("imag_####.png");
}
}
@@ -0,0 +1,14 @@
h1. coucoux
h2. Elie Partouche
Mon projet n'a pas commencé
/!images/tutorial-getting-started-krita_part1_14_net.jpg!
<!-- Pour insérer des images, comme des shoot écrans de votre travail, commencez par les déposer dans le dossier images de votre dossier perso
puis ajouter cette ligne: -->
bc. !images/nomdemonimage.jpeg!
<!-- Toutes les images seront insérez automatiquement a la fin de votre description dans la documentation finale, sauf celle ajouté manuellement dans le texte. -->