jojolaglaise — 2016-02-29 20:40:54

Allez! Ma petite contribution! Une pozézie d'annif:

int ageDeCodeLab = 8;

void setup() {
  background(255, 255, 0);
  placerBougiesSurGateau(width/5);
  bougies(ageDeCodeLab);
}

void bougies(int age) {
  for (int i = 0; i < ageDeCodeLab; i++) {
    line(i * age, 50, i * age, 100);
  }
}

void placerBougiesSurGateau(int sentirQueCestAuMilieu){
  translate(sentirQueCestAuMilieu, 0);
}
jojolaglaise — 2016-02-29 20:44:30

Et merci Codelab ! :-)

jkp — 2016-02-29 20:48:17

def clap():
   print "clap"
   sleep 2
   print "clap"

for i in range(100):
   clap()

jojolaglaise — 2016-02-29 20:56:47

citation :

def clap():
   print "clap"
   sleep 2
   print "clap"

for i in range(100):
   clap()

void setup() {
  frameRate(2);
}

void draw() {
  background(255, 255, 0);
  tete();
  println("Ouais!!! Pas mal ce hai-code! Efficace!!! ");
}

void tete() {
  laSecouer();
  ellipse(width/2, height/2, 40, 40);
}

void laSecouer() {
  int y;
  if (frameCount % 2 == 0) {
    y = 5;
  } else {
    y = -5;
  }
  translate(0, y);
}
Olivier — 2016-02-29 23:39:45

for sentiment in mes_sentiments:
  print(sentiment["gratitude"])
jojolaglaise — 2016-03-02 23:59:31

:)