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); }
Hors ligne
Et merci Codelab ! :-)
Hors ligne
def clap():
print "clap"
sleep 2
print "clap"
for i in range(100):
clap()
Hors ligne
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); }
Hors ligne
Hors ligne
Pages: 1