TWEETING CODE

free solidworks 2012

Twitter son code processing comment créer un code avec une interaction souris ou clavier qui tient en 277 caractères (car #P5 à la fin du tweet) ou moins how to download itunes.

/////////////////
////THÉO////////
/////////////////

int N=25;
void setup() {
  size(100, 100);
}
void draw() {
  background(255);
  if (mousePressed) {
    background(0);
  }
  fill(150);
  ellipse(85, N, 10, 10);
  N=N-1;
  if (N<0) {
    N=25;
  }
  fill(#7A03FC);
  rect(0, 50, 100, 50);
  fill(#FFEB03);
  rect(80, 25, 10, 25);
  triangle(0, 50, 50, 0, 100, 50);
  if (mousePressed) {
    rect(10, 60, 20, 25);
  }
}
/////////////////
////HUGO/////////
///VERSION #1////
/////////////////

float x=width/2, y=height/2;
void setup() {
  size(600, 600);
  noCursor();
  background(0);
}
void draw() {
  x=x+0.006;
  y=y+0.005;
  float xoff=noise(x)*width;
  float yoff=noise(y)*height;
  fill(0, 15);
  rect(0, 0, width, height);
  stroke(255);
  noFill();
  line(mouseX, mouseY, xoff, yoff);
}
/////////////////
////HUGO/////////
///VERSION #2////
/////////////////

float x=width/2, y=height/2;
void setup() {
  size(600, 600);
  noCursor();
}
void draw() {
  x=x+0.012;
  y=y+0.015;
  float xo=noise(x)*width;
  float yo=noise(y)*height;
  background(0, 0, 0);
  stroke(255);
  noFill();
  line(mouseX, mouseY, xo, yo);
  ellipse(xo, yo, 20, 20);
  ellipse(mouseX, mouseY, 20, 20);
}
/////////////////
//JEAN-EDOUARD///
///VERSION #1////
/////////////////

void draw() {
  fill(250, 50, 50, 10);
  rect(-1, -1, 126, 126);
  float V=random(-2, 125);
  float W=random(-2, 125);
  stroke(255);
  line(V, W, mouseX, mouseY);
}
/////////////////
//JEAN-EDOUARD///
///VERSION #2////
/////////////////
void setup() {
  size(1000, 700);
} 
void draw() {
  float v=3;
  fill(255);
  ellipse(width/2, height/2, 800, 600);
  float Mx=mouseX-width/2;
  float My=mouseY-height/2;
  float Xx=Mx*0.6;
  float Yy=My*0.6;
  fill(#44BDE8);
  ellipse(Xx+width/2, Yy+height/2, 200, 200);
  float X=Mx*0.7;
  float Y=My*0.7;
  fill(0);
  ellipse(X+width/2, Y+height/2, 50, 50);
}
//////////////////
//ANNE-CHARLOTTE//
//////////////////

void setup() {
  size(500, 500);
  background(25, 0, 100);
}
void draw() {
  fill(255, 40);
  strokeWeight(10);
  if (mousePressed) {
    strokeWeight(3);
    ellipse(mouseX, mouseY, 40, 40);
    stroke(0);
  } else {
    stroke(255);
    fill(random(0, 255));
  }
  ellipse(mouseX, mouseY, 40, 40);
}
//////////////////
//VALENTINE///////
//////////////////

void setup () {
  size (1000, 800);
  background (100, 230, 150);
}
void draw () {
  if (mousePressed) {
    triangle (mouseX-random(300), mouseY, 14, 50, 30, 20);
  } else {
    rect(mouseX-random(30), mouseY-random(200), 30, 10);
  }
}
//////////////////
//CHLOÉ///////////
//////////////////

int value = 0;  
void setup() { 
  background(0);
}  
void draw() {  
  fill(value);  
  stroke(255);  
  ellipse(50, 50, 80, 80);
}  
void mouseMoved() {  
  value = value + 9;  
  if (value > 255)    value = 0;
}
//////////////////
//MAEVA///////////
//////////////////

void setup() {
  size(100, 100);
  background(187, 210, 225);
}
void draw() {
  if (key=='1') {
    ellipse(100, 100, 86, 56);
    fill(231, 62, 1);
  }
  if (key=='2') {
    ellipse(20, 50, 36, 36);
    fill(102, 0, 255);
  }
  if (key=='3') {
    ellipse(3, 89, 6, 56);
    fill(255, 127, 0);
  }
  if (key=='4') {
    ellipse(60, 45, 90, 90);
    fill(255, 0, 0);
  }
}
/////////////////
////MAXIME///////
/////////////////

void setup() {
  size(600, 600);
}
float r=random(-300, 600);
void draw() {
  delay(100);
  translate(mouseX, mouseY);
  background(200, mouseX, mouseY);
  ellipse(mouseX, mouseY, 30, r);
  {
    if (mousePressed)ellipse(mouseX, r, mouseY, 30);
  }
  stroke(50);
  fill(230, mouseX, mouseY);
}
/////////////////
////PAUL/////////
/////////////////

void setup() {
  size(900, 900);
}
void draw() {
  noStroke();
  background(#3155FF);
  rectMode(CENTER);
  rect(mouseX, mouseY-25, 150, 50);
  rect(mouseX, mouseY+25, 250, 50);
  fill(255);
  ellipse(mouseX-75, mouseY+50, 50, 50);
  ellipse(mouseX+75, mouseY+50, 50, 50);
  if (mousePressed) {
    fill(#FF3131);
  }
}
/////////////////
////NICOLAS//////
/////////////////

void setup() {
  size(500, 500);
  noStroke();
  ellipse(125, 250, 200, 200);
  ellipse(375, 250, 200, 200);
}
void draw() {
  if (keyPressed == true && key == 'v') {
    fill(21, 108, 20);
    noStroke();
    ellipse(125, 250, 200, 200);
  }
  if (keyPressed == true && key == 'f') { 
    fill(227, 44, 47);
    noStroke();
    ellipse(375, 250, 200, 200);
  }
}
void keyReleased() {
  fill(255);
  ellipse(125, 250, 200, 200);
  ellipse(375, 250, 200, 200);
}
/////////////////
////YUFEI////////
/////////////////

void setup() {
  size(255, 255);
}
void draw() {
  background(mouseX, mouseY, mouseX/2+mouseY/2);
}
/////////////////
////LAURA////////
/////////////////

void setup() {  
  size(500, 500);  
  background (230, 50, 50);
}  
void draw() {  
  rect(200, 200, 100, 100);  
  fill(50, 0, 230);   
  noStroke(); 
  if (mouseX > 200 & mouseY > 200) {
    fill(250, 250, 0); 
    rect(200, 200, 300, 300);
  } 
  if (mousePressed) {
    fill(50, 0, 230); 
    background(230, 50, 50);
  }
}
/////////////////
////XIAOJIE//////
/////////////////

boolean check = true;
void setup() {
  size(600, 600);
  frameRate(45);
}
void draw() {
  if (check == true) {
    background(random(255), random(255), random(255));
  } 
  if (keyPressed == true) {
    check = !check;
    delay(100);
  }
}
telegram nachrichten herunterladen