spaceship

30/11/2017 etudiant 0

float r, g ,b; void setup() { size(640, 640); background(255,34,31); noCursor(); } void draw(){ r= random(255); g= random(255); b= random(255); fill(204, 102, 0); ellipse(300, 300, […]

Aucune image

Footsteps

30/11/2017 etudiant 0

PImage img; PImage img1; void setup() { size (700,1000); } void draw() { if (mouseButton == LEFT) {img1 = loadImage("left.png"); image(img1, 0, 200);} else if […]

CIRCLE

30/11/2017 etudiant 0

</h5> void setup() { size(640, 360); noSmooth(); background(120,170,200); fill(300); } void draw() { if (mousePressed) { stroke(200); } else { stroke(3); } ellipse(mouseX-1, mouseY, mouseX+2, […]

Code – Random pattern

30/11/2017 etudiant 0

void setup(){ size(800 ,800); } void draw(){ if (mousePressed){ fill(random(0,255)); } else { fill(random(0,255),random(0,255),random(0,255)); } ellipse(mouseX,mouseY,80,80); } void setup(){size(800,800);} void draw(){if (mousePressed){fill(random(0,255));} else {fill(random(0,255),0,200);}ellipse(mouseX,mouseY,80,80);}

COULEUR CONTRE COULEUR

30/11/2017 etudiant 0

int i = 0; void setup(){ size(999, 999); background(255, 209, 240); } void draw(){ if(mousePressed){ ++i; stroke(255, 209, 240); } } void mouseDragged(){ strokeWeight(100); ellipse(mouseX, […]

Aucune image

Exercice Processing

30/11/2017 etudiant 0

void setup(){size(700,700);background(172,206,37);} int value=0; void draw(){noStroke();fill(value);rect(mouseY,315,100,100);rect(mouseX,100,100,50);rect(mouseY,50,100,25);rect(mouseX,500,100,100);} void keyPressed(){if(value==0){value=200;}else{value=0;}}

interteton

30/11/2017 etudiant 0

void setup(){size(600,600); }void draw() { background(479,mouseX,mouseY); translate(mouseX, mouseY); fill(479,mouseX,mouseY); stroke(mouseX,mouseY,219); strokeWeight(6); ellipse(mouseY,mouseX,30,30); ellipse(20,mouseX,10,mouseY); ellipse(10,mouseX,mouseY,20); } version twitter= void setup(){size(600,600);}void draw() {background(479,mouseX,mouseY);translate(mouseX, mouseY);fill(479,mouseX,mouseY);stroke(mouseX,mouseY,219);strokeWeight(6);ellipse(mouseY,mouseX,30,30);ellipse(20,mouseX,10,mouseY);ellipse(10,mouseX,mouseY,20);}

Aucune image

Pas content!

30/11/2017 etudiant 0

float r,g,b; void setup() { size(600, 600); } void draw() { if (mousePressed) { r = random(255); g = random(255); b = random(255); } else […]

Aucune image

Badminton

30/11/2017 etudiant 0

  void setup(){size(1500,1000);} void draw(){ delay(100); background(#382AAD); strokeWeight(4); stroke(255,0,0); line(pmouseX,pmouseY,mouseX,mouseY); line(pmouseX+20,pmouseY+20,mouseX+15,mouseY+15); line(pmouseX-20,pmouseY-20,mouseX-15,mouseY-15); ellipse(mouseX,mouseY,50,50);} void setup(){size(1500,1000);}void draw(){ //43delay(100);background(#382AAD);strokeWeight(4);stroke(255,0,0);line(pmouseX,pmouseY,mouseX,mouseY); line(pmouseX+20,pmouseY+20,mouseX+15,mouseY+15);line(pmouseX-20,pmouseY-20,mouseX-15,mouseY-15);ellipse(mouseX,mouseY,50,50);}