Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup()
- {
- size(800, 600);
- stroke(255);
- }
- //int flottement = 0;
- int nombreparticules = 40;
- void draw() {
- int paddingx = width/(nombreparticules+1);
- int paddingy = height/(nombreparticules+1);
- //int taillegrille = 40;
- background(0);
- for (int i = 0; i<nombreparticules+1; i++) {
- for (int j = 0; j<nombreparticules+1; j++) {
- point(paddingx+random(mouseX)+i*paddingx-mouseX/2,paddingy+random(mouseX)+j*paddingy-mouseX/2);
- }
- }
- }
- //void keyPressed() {
- // if (key == 'a') {
- // flottement+=1;
- // }else{
- // flottement=0;
- // }
- //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement