Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
productions:confluences [2022/03/04 13:51] vanlindtmarc créée |
productions:confluences [2022/03/13 23:34] (Version actuelle) vanlindtmarc |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Confluences ====== | ====== Confluences ====== | ||
+ | ===== Convention Manufacture ===== | ||
+ | {{pdfjs 85vh > | ||
===== Tables rondes : contenus ===== | ===== Tables rondes : contenus ===== | ||
{{pdfjs 85vh > | {{pdfjs 85vh > | ||
===== Dossier principal ===== | ===== Dossier principal ===== | ||
{{pdfjs 85vh > | {{pdfjs 85vh > | ||
- | ==== | + | ===== Citizen Cape ===== |
+ | |||
+ | {{pdfjs 85vh > | ||
+ | {{pdfjs 85vh > | ||
+ | {{pdfjs 85vh > | ||
+ | |||
+ | ==== Code principal ==== | ||
+ | < | ||
+ | /* | ||
+ | | ||
+ | | | | ||
+ | __| | ___ | ||
+ | / _` |/ _ \ / _ \| '__/ __| | ||
+ | | (_| | (_) | (_) | | \__ \ | ||
+ | | ||
+ | |||
+ | CC-BY-SA Belgique 2.0 - VANLINDT MARC | ||
+ | */ | ||
+ | |||
+ | color | ||
+ | color | ||
+ | |||
+ | color | ||
+ | color | ||
+ | |||
+ | color | ||
+ | color | ||
+ | color | ||
+ | |||
+ | PFont | ||
+ | PFont | ||
+ | PFont | ||
+ | |||
+ | float | ||
+ | |||
+ | int Profil = 0; | ||
+ | |||
+ | char touches[][] = {{' | ||
+ | |||
+ | int | ||
+ | int | ||
+ | |||
+ | int | ||
+ | int | ||
+ | |||
+ | int[][] | ||
+ | int[] | ||
+ | |||
+ | String[][] reponses = { | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | {"Seul on va plus vite", " | ||
+ | {"Vie hyperactive", | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | {" | ||
+ | }; | ||
+ | |||
+ | PImage fond; | ||
+ | |||
+ | Table exportcsv; | ||
+ | |||
+ | boolean SauveOK = false; | ||
+ | |||
+ | void setup(){ | ||
+ | |||
+ | remiseazero(); | ||
+ | size(1080, | ||
+ | fullScreen(); | ||
+ | background(Confluences); | ||
+ | noStroke(); | ||
+ | frameRate(60); | ||
+ | smooth(4); | ||
+ | loop(); | ||
+ | fond = loadImage(" | ||
+ | PoliceConfluences = createFont(" | ||
+ | PoliceConfluencesGras = createFont(" | ||
+ | PoliceConfluencesItalique = createFont(" | ||
+ | exportcsv = loadTable(" | ||
+ | } | ||
+ | |||
+ | void draw(){ | ||
+ | image(fond, | ||
+ | creationcouleurs(); | ||
+ | affichageportes(); | ||
+ | appuitouches(); | ||
+ | afficheevolution(); | ||
+ | |||
+ | fill(255, | ||
+ | rect(50, | ||
+ | textFont(PoliceConfluencesGras); | ||
+ | textSize(25); | ||
+ | fill(0, | ||
+ | text(" | ||
+ | |||
+ | int NombreParticipants=exportcsv.getRowCount(); | ||
+ | textFont(PoliceConfluences); | ||
+ | textSize(20); | ||
+ | fill(0, | ||
+ | text(" | ||
+ | |||
+ | int[] statsportes = {0, | ||
+ | |||
+ | for(int i = 0; i <= NombrePortes; | ||
+ | for (TableRow row : exportcsv.findRows(str(i+1), | ||
+ | textAlign(CENTER); | ||
+ | |||
+ | textFont(PoliceConfluencesGras); | ||
+ | textSize(15); | ||
+ | text(" | ||
+ | |||
+ | textAlign(LEFT); | ||
+ | } | ||
+ | |||
+ | int maxstats = max(statsportes); | ||
+ | int[][] statscoord = {{0, | ||
+ | int hauteurstats=475; | ||
+ | |||
+ | for(int i = 0; i <= NombrePortes; | ||
+ | circle(100 + (1080-200)/ | ||
+ | if(i< | ||
+ | stroke(2); | ||
+ | noFill(); | ||
+ | |||
+ | bezier( | ||
+ | |||
+ | float (100 + (1080-200)/ | ||
+ | float (1800 - hauteurstats/ | ||
+ | float (100 + (1080-200)/ | ||
+ | float (1800 - hauteurstats/ | ||
+ | |||
+ | float (100 + (1080-200)/ | ||
+ | float (1800 - hauteurstats/ | ||
+ | float (100 + (1080-200)/ | ||
+ | float (1800 - hauteurstats/ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | /* | ||
+ | line( | ||
+ | 100 + (1080-200)/ | ||
+ | 1800 - hauteurstats/ | ||
+ | 100 + (1080-200)/ | ||
+ | 1800 - hauteurstats/ | ||
+ | |||
+ | line( | ||
+ | float (100 + (1080-200)/ | ||
+ | float (1800 - hauteurstats/ | ||
+ | float (100 + (1080-200)/ | ||
+ | float (1800 - hauteurstats/ | ||
+ | |||
+ | |||
+ | );*/ | ||
+ | |||
+ | } | ||
+ | textAlign(CENTER); | ||
+ | textFont(PoliceConfluencesItalique); | ||
+ | textSize(15); | ||
+ | text(statsportes[i], | ||
+ | textAlign(LEFT); | ||
+ | fill(0, | ||
+ | } | ||
+ | |||
+ | noStroke(); | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | int Somme = 0; | ||
+ | for(int i=0; | ||
+ | if(RayManzarek[i]!=99){ | ||
+ | Somme += (int(RayManzarek[i])*int(pow(2, | ||
+ | } | ||
+ | } | ||
+ | |||
+ | | ||
+ | for (int z = 0; z < NombrePortes; | ||
+ | Profil +=RayManzarek[z]; | ||
+ | } | ||
+ | if(Profil< | ||
+ | text(Profil+1, | ||
+ | if(SauveOK == false){ | ||
+ | TableRow newRow = exportcsv.addRow(); | ||
+ | newRow.setInt(" | ||
+ | newRow.setInt(" | ||
+ | newRow.setInt(" | ||
+ | println(Somme); | ||
+ | saveTable(exportcsv, | ||
+ | SauveOK=true; | ||
+ | } | ||
+ | |||
+ | int NombreProfil=0; | ||
+ | for (TableRow row : exportcsv.findRows(str(Profil+1), | ||
+ | NombreProfil+=1; | ||
+ | } | ||
+ | int NombreChemin=0; | ||
+ | for (TableRow row : exportcsv.findRows(str(Somme+1), | ||
+ | NombreChemin+=1; | ||
+ | } | ||
+ | int base=hauteur+100; | ||
+ | int hauteur2=180; | ||
+ | fill(Confluences2); | ||
+ | rect(50, | ||
+ | fill(Confluences); | ||
+ | rect(51, | ||
+ | fill(Confluences2); | ||
+ | rect(52, | ||
+ | textFont(PoliceConfluencesGras); | ||
+ | fill(blanc); | ||
+ | textSize(40); | ||
+ | text(" | ||
+ | textFont(PoliceConfluences); | ||
+ | textSize(30); | ||
+ | |||
+ | textFont(PoliceConfluencesItalique); | ||
+ | textSize(20); | ||
+ | |||
+ | String NPText =""; | ||
+ | if(NombreProfil==1){NPText=" | ||
+ | String NCText =""; | ||
+ | if(NombreChemin==1){NCText=" | ||
+ | |||
+ | text(NPText+ NCText, | ||
+ | |||
+ | textFont(PoliceConfluences); | ||
+ | textSize(30); | ||
+ | // text(Profils[Profil], | ||
+ | |||
+ | if(Profil==0){ | ||
+ | text(" | ||
+ | }else{ | ||
+ | String tmp = " | ||
+ | if(Profil == 0 || Profil ==1){tmp=" | ||
+ | text(" | ||
+ | } | ||
+ | } | ||
+ | |||
+ | void creationcouleurs(){ | ||
+ | for (int x=0; x< | ||
+ | color c=lerpColor(Haut, | ||
+ | JimMorrison[x][0]=c; | ||
+ | } | ||
+ | |||
+ | for (int y=1; | ||
+ | for (int x=0; | ||
+ | color c=lerpColor(JimMorrison[y][0], | ||
+ | JimMorrison[y][x]=c; | ||
+ | } | ||
+ | } | ||
+ | JimMorrison[0][0]=Haut; | ||
+ | } | ||
+ | |||
+ | void affichageportes(){ | ||
+ | for (int y=0; | ||
+ | for (int x=0; | ||
+ | int SommeRM = 0; | ||
+ | for (int z = 0; z < y; z++) { | ||
+ | SommeRM +=RayManzarek[z]; | ||
+ | } | ||
+ | fill(JimMorrison[y][x]); | ||
+ | rect(decalx +(x*largeur/ | ||
+ | if(x!=SommeRM){ | ||
+ | fill(0, | ||
+ | rect(decalx +(x*largeur/ | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | |||
+ | void remiseazero(){ | ||
+ | for(int i=0; | ||
+ | RayManzarek[i] = 99; | ||
+ | } | ||
+ | SauveOK = false; | ||
+ | } | ||
+ | |||
+ | void appuitouches(){ | ||
+ | |||
+ | if (keyPressed) { | ||
+ | for (int k=0; | ||
+ | if (key == touches[k][0]) {RayManzarek[k]=0; | ||
+ | if (key == touches[k][1]) {RayManzarek[k]=1; | ||
+ | } | ||
+ | if(key==' | ||
+ | remiseazero(); | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | |||
+ | void afficheevolution(){ | ||
+ | for (int k=0; | ||
+ | fill(blanc); | ||
+ | textFont(PoliceConfluences); | ||
+ | textSize(20); | ||
+ | fill(255, | ||
+ | String tmp = ""; | ||
+ | |||
+ | if(k==0){tmp=" | ||
+ | if(RayManzarek[k]==99) {fill(255, | ||
+ | |||
+ | if(RayManzarek[k]==0) | ||
+ | | ||
+ | | ||
+ | } | ||
+ | |||
+ | if(RayManzarek[k]==1) {fill(128, | ||
+ | | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | ==== Code secondaire ==== | ||
+ | < | ||
+ | | ||
+ | | | | ||
+ | __| | ___ | ||
+ | / _` |/ _ \ / _ \| '__/ __| | ||
+ | | (_| | (_) | (_) | | \__ | | ||
+ | | ||
+ | |||
+ | CC-BY-SA Belgique 2.0 - VANLINDT MARC | ||
+ | |||
+ | */ | ||
+ | color | ||
+ | color | ||
+ | color | ||
+ | color | ||
+ | color | ||
+ | |||
+ | PFont | ||
+ | PFont | ||
+ | PFont | ||
+ | PImage | ||
+ | PImage | ||
+ | Table | ||
+ | boolean | ||
+ | boolean | ||
+ | int | ||
+ | char[][][] | ||
+ | { | ||
+ | { | ||
+ | {' | ||
+ | }, | ||
+ | { | ||
+ | {' | ||
+ | }, | ||
+ | { | ||
+ | {' | ||
+ | }, | ||
+ | { | ||
+ | {' | ||
+ | } | ||
+ | }; | ||
+ | |||
+ | String Nom1 =""; | ||
+ | String Mail =""; | ||
+ | String CodePostal = ""; | ||
+ | String nom=" | ||
+ | |||
+ | int Shift = 0; | ||
+ | int Shift2 = 1; | ||
+ | int compteur=0; | ||
+ | |||
+ | |||
+ | void setup(){ | ||
+ | size(1920, | ||
+ | fullScreen(); | ||
+ | background(Confluences); | ||
+ | noStroke(); | ||
+ | frameRate(60); | ||
+ | smooth(4); | ||
+ | loop(); | ||
+ | fond = loadImage(" | ||
+ | fond2 = loadImage(" | ||
+ | PoliceConfluences = createFont(" | ||
+ | PoliceConfluencesGras = createFont(" | ||
+ | PoliceConfluencesItalique = createFont(" | ||
+ | exportcsv = loadTable(" | ||
+ | } | ||
+ | |||
+ | void draw(){ | ||
+ | image(fond, | ||
+ | if(SauveOK==false){ | ||
+ | PasOk(); | ||
+ | } else { | ||
+ | ok(); | ||
+ | } | ||
+ | } | ||
+ | void PasOk() | ||
+ | { | ||
+ | |||
+ | if(nom==" | ||
+ | { | ||
+ | couleurnom=color(Confluences); | ||
+ | couleurmail=color(255, | ||
+ | couleurcodepostal=color(255, | ||
+ | } | ||
+ | if(nom==" | ||
+ | { | ||
+ | couleurmail=color(Confluences); | ||
+ | couleurnom=color(255, | ||
+ | couleurcodepostal=color(255, | ||
+ | } | ||
+ | if(nom==" | ||
+ | { | ||
+ | couleurcodepostal=color(Confluences); | ||
+ | couleurnom=color(255, | ||
+ | couleurmail=color(255, | ||
+ | } | ||
+ | |||
+ | // zone nom | ||
+ | fill (255, | ||
+ | rect (50, | ||
+ | |||
+ | fill(couleurnom); | ||
+ | textAlign(LEFT); | ||
+ | textSize(35); | ||
+ | text(" | ||
+ | |||
+ | //zone remise à zéro | ||
+ | fill (255, | ||
+ | rect (660, | ||
+ | |||
+ | text(" | ||
+ | |||
+ | //Zone Mail | ||
+ | fill (255, | ||
+ | |||
+ | rect (50, | ||
+ | fill (couleurmail); | ||
+ | |||
+ | textAlign(LEFT); | ||
+ | textSize(35); | ||
+ | text(" | ||
+ | |||
+ | //Zone code postal | ||
+ | fill (255, | ||
+ | |||
+ | rect (50, | ||
+ | fill (couleurcodepostal); | ||
+ | |||
+ | textAlign(LEFT); | ||
+ | textSize(35); | ||
+ | text(" | ||
+ | |||
+ | //zone " | ||
+ | fill (255, | ||
+ | rect (50, | ||
+ | |||
+ | fill (Confluences); | ||
+ | textAlign(CENTER); | ||
+ | textSize(35); | ||
+ | text(" | ||
+ | |||
+ | if ( | ||
+ | mousePressed == true && | ||
+ | mouseX> | ||
+ | mouseX< | ||
+ | mouseY> | ||
+ | mouseY< | ||
+ | { | ||
+ | remiseazero(); | ||
+ | println(" | ||
+ | delay(delai); | ||
+ | } | ||
+ | |||
+ | if ( | ||
+ | mousePressed == true && | ||
+ | mouseX> | ||
+ | mouseX< | ||
+ | mouseY> | ||
+ | mouseY< | ||
+ | { | ||
+ | nom=" | ||
+ | delay(delai); | ||
+ | } | ||
+ | |||
+ | if ( | ||
+ | mousePressed == true && | ||
+ | mouseX> | ||
+ | mouseX< | ||
+ | mouseY> | ||
+ | mouseY< | ||
+ | { | ||
+ | nom=" | ||
+ | delay(delai); | ||
+ | } | ||
+ | |||
+ | if ( | ||
+ | mousePressed == true && | ||
+ | mouseX> | ||
+ | mouseX< | ||
+ | mouseY> | ||
+ | mouseY< | ||
+ | { | ||
+ | nom=" | ||
+ | delay(delai); | ||
+ | } | ||
+ | |||
+ | if ( | ||
+ | mousePressed == true && | ||
+ | mouseX> | ||
+ | mouseX< | ||
+ | mouseY> | ||
+ | mouseY< | ||
+ | { | ||
+ | SauveOK=true; | ||
+ | delay(delai); | ||
+ | } | ||
+ | |||
+ | // affichages des touches | ||
+ | |||
+ | for(int i=0; | ||
+ | for(int j=0; | ||
+ | stroke(Confluences2); | ||
+ | fill(255, | ||
+ | rect( | ||
+ | 50+(j*((width-100)/ | ||
+ | (height/ | ||
+ | (width-100)/ | ||
+ | height/ | ||
+ | 10); | ||
+ | textAlign(CENTER); | ||
+ | fill(Confluences); | ||
+ | textFont(PoliceConfluencesGras); | ||
+ | textSize(50); | ||
+ | text( | ||
+ | touches1[i][j][Shift], | ||
+ | 50+(j*((width-100)/ | ||
+ | ((height/ | ||
+ | ); | ||
+ | |||
+ | textFont(PoliceConfluencesItalique); | ||
+ | fill(Confluences2); | ||
+ | textSize(30); | ||
+ | text( | ||
+ | touches1[i][j][Shift]+" | ||
+ | 50+(j*((width-100)/ | ||
+ | ((height/ | ||
+ | ); | ||
+ | |||
+ | if ( | ||
+ | mousePressed == true && | ||
+ | mouseX> | ||
+ | mouseX< | ||
+ | mouseY> | ||
+ | mouseY< | ||
+ | { | ||
+ | if(nom==" | ||
+ | Nom1=Nom1+=touches1[i][j][Shift]; | ||
+ | delay(delai); | ||
+ | } | ||
+ | if(nom==" | ||
+ | Mail=Mail+=touches1[i][j][Shift]; | ||
+ | delay(delai); | ||
+ | } | ||
+ | if(nom==" | ||
+ | CodePostal=CodePostal+=touches1[i][j][Shift]; | ||
+ | delay(delai); | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | |||
+ | //touche shift | ||
+ | fill(255, | ||
+ | rect(50, | ||
+ | (height/ | ||
+ | (width-100)/ | ||
+ | height/ | ||
+ | 10); | ||
+ | fill(Confluences); | ||
+ | text(" | ||
+ | 50+((width-100)/ | ||
+ | (height/ | ||
+ | ); | ||
+ | |||
+ | if( | ||
+ | mousePressed == true && | ||
+ | mouseX> | ||
+ | mouseX< | ||
+ | mouseY> | ||
+ | mouseY< | ||
+ | if(Shift==0){ | ||
+ | Shift=1; | ||
+ | Shift2=0; | ||
+ | } | ||
+ | else{ | ||
+ | Shift=0; | ||
+ | Shift2=1; | ||
+ | } | ||
+ | delay(delai); | ||
+ | } | ||
+ | |||
+ | } | ||
+ | void remiseazero(){ | ||
+ | Nom1 =""; | ||
+ | Mail = ""; | ||
+ | nom=" | ||
+ | CodePostal = ""; | ||
+ | } | ||
+ | |||
+ | void ok() | ||
+ | { | ||
+ | background(fond2); | ||
+ | |||
+ | if(SauveOK2 == false){ | ||
+ | TableRow newRow = exportcsv.addRow(); | ||
+ | newRow.setInt(" | ||
+ | newRow.setString(" | ||
+ | newRow.setString(" | ||
+ | newRow.setString(" | ||
+ | saveTable(exportcsv, | ||
+ | println(Nom1+" | ||
+ | SauveOK2 = true; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | // int NombreParticipants=exportcsv.getRowCount(); | ||
+ | </ | ||
+ | ===== Croisière ===== | ||
+ | ==== Préparation ==== | ||
+ | {{pdfjs 85vh > | ||
+ | ==== Conduite ==== | ||
+ | {{pdfjs 85vh > | ||
+ | ==== Détails ==== | ||
+ | {{pdfjs 85vh > | ||
+ | |||
+ | ===== Débriefing ===== | ||
+ | {{pdfjs 85vh > | ||
+ | |||
+ | ===== Site internet ===== | ||
+ | {{pdfjs 85vh > | ||
+ | }} |