jean fran ois cauche upcycle commons trezorium
play

Jean-Franois Cauche Upcycle Commons / Trezorium 1 HELLO WORLD ! - PowerPoint PPT Presentation

Jean-Franois Cauche Upcycle Commons / Trezorium 1 HELLO WORLD ! 2 Pourquoi Coder ? Comprhension du monde numrique / Lire, crire, compter, coder... / Mode dapprentissage alternatif / Ouverture technique, scientifique et


  1. Jean-François Cauche Upcycle Commons / Trezorium 1

  2. HELLO WORLD ! 2

  3. Pourquoi Coder ? Compréhension du monde numérique / Lire, écrire, compter, coder... / Mode d’apprentissage alternatif / Ouverture technique, scientifique et culturelle / Citoyenneté numérique / Fun ! 3

  4. Que pour les enfants ? 4

  5. // Trig lookup tables borrowed from Toxi; cryptic but effective. float sinLUT[]; float cosLUT[]; float SINCOS_PRECISION=1.0; int SINCOS_LENGTH= int((360.0/SINCOS_PRECISION)); // System data boolean dosave=false; int num; float pt[]; int style[]; void setup() { size(1024, 768, P3D); background(255); // Fill the tables sinLUT=new float[SINCOS_LENGTH]; cosLUT=new float[SINCOS_LENGTH]; for (int i = 0; i < SINCOS_LENGTH; i++) { sinLUT[i]= (float)Math.sin(i*DEG_TO_RAD*SINCOS_PRECISION); cosLUT[i]= (float)Math.cos(i*DEG_TO_RAD*SINCOS_PRECISION); } num = 150; pt = new float[6*num]; // rotx, roty, deg, rad, w, speed style = new int[2*num]; // color, render style // Set up arc shapes int index=0; float prob; for (int i=0; i<num; i++) { pt[index++] = random(PI*2); // Random X axis rotation pt[index++] = random(PI*2); // Random Y axis rotation CODE pt[index++] = random(60,80); // Short to quarter-circle arcs if(random(100)>90) pt[index]=(int)random(8,27)*10; pt[index++] = int(random(2,50)*5); // Radius. Space them out nicely pt[index++] = random(4,32); // Width of band if(random(100)>90) pt[index]=random(40,60); // Width of band pt[index++] = radians(random(5,30))/5; // Speed of rotation // get colors prob = random(100); if(prob<30) style[i*2]=colorBlended(random(1), 255,0,100, 255,0,0, 210); else if(prob<70) style[i*2]=colorBlended(random(1), 0,153,255, 170,225,255, 210); else if(prob<90) style[i*2]=colorBlended(random(1), 200,255,0, 150,255,0, 210); CODAGE else style[i*2]=color(255,255,255, 220); if(prob<50) style[i*2]=colorBlended(random(1), 200,255,0, 50,120,0, 210); else if(prob<90) style[i*2]=colorBlended(random(1), 255,100,0, 255,255,0, 210); else style[i*2]=color(255,255,255, 220); style[i*2+1]=(int)(random(100))%3; } } void draw() { background(0); int index=0; translate(width/2, height/2, 0); rotateX(PI/6); rotateY(PI/6); for (int i = 0; i < num; i++) { pushMatrix(); void arcLineBars(float x,float y,float deg,float rad,float w) { int a = int((min (deg/SINCOS_PRECISION,SINCOS_LENGTH-1))); a /= 4; beginShape(QUADS); for (int i=0; i<a; i+=4) { vertex(cosLUT[i]*(rad)+x,sinLUT[i]*(rad)+y); 5 vertex(cosLUT[i]*(rad+w)+x,sinLUT[i]*(rad+w)+y); vertex(cosLUT[i+2]*(rad+w)+x,sinLUT[i+2]*(rad+w)+y); vertex(cosLUT[i+2]*(rad)+x,sinLUT[i+2]*(rad)+y); } endShape(); }}

  6. OpenSCAD 6

  7. OpenStreetMap 7

  8. Robotique / Électronique 8

  9. Fabrication numérique 9

  10. Scratch 10

  11. Séquencer 11

  12. ScratchX 12

  13. Deep code (random, text…) 13

  14. Tutoriels https://dl.dropboxuser content.com/u/179079 /Tutoriels_Scratch.zip 14

  15. Merci ! jfcauche@gmail.com secouezlecours.com upcyclecommons.com trezorium.com 15

  16. Crédits Photos R e S u r g e I n t e r n a t i o n a l ( C C B Y - N C - N D 2 . 0 ) Daniel Lombraña González (CC BY-SA 2.0) Adam Greig (CC BY-SA 2.0) Christiaan Colen (CC BY-SA 2.0) Jean-François CAUCHE 16

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend