Modifications

Aller à : navigation, rechercher

Run 2000

1 193 octets ajoutés, 16 avril 2018 à 21:58
Programmation du cube
== '''Programmation du cube''' ==
=== Code Processing :===
==== -Mise en aléatoire des vidéos====
==== -Inversion des couleurs pour le capteur lumière====
<gallery mode="packed">
File:Capture d’écran 2018-04-16 à 23.28.59.png
==== -Split screen ====
<gallery mode="packed">
File:Capture d’écran 2018-04-16 à 23.34.21.png
</gallery>
==== -Glitch====
<gallery mode="packed">
File:Capture d’écran 2018-04-16 à 23.30.41.png
</gallery>
void draw() {
image(m, 0, 0, width, height); // On affiche la vidéo //si la pression est faible le glitch est minime if (pression < 1500){ glitch(); }  //si la pression est forte le glitch est intense if (pression >=1500){ glitch(); glitch(); glitch(); glitch(); glitch(); glitch(); }  // 10 bandes horizontales étirées en largeur for (int i = 0; i < 10; i++) { // copy(m, 0, 150+i*10, width, 5, 0, 150+i*10, int(width*1.1), 5); } } void movieEvent(Movie m) { m.read();} void glitch(){ a = int(random(width)); //valeurs random b = int(random(height)); c = int(random(width)); d = int(random(height)); // On copie m à 140 en x et 260 en y, sur 600 px en x et 50 px en y, // puis on on affiche cette copie à 140 en x et 260 en y (au même endroit donc) // mais cette fois la taille affiché sera 600 en x (comme avant) et 150 en y (3 fois plus haut) copy(m, 200, 260, 600, 50, a, b, c, d); //carré en random  noStroke(); // pas de contours fill(random(255), random(255), random(255), 35); // random color rect(a, b, c, d); // rectangle transparent dessus }   === Code Photon:===
== '''L'installation finale''' ==
906
modifications

Menu de navigation