Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. PGraphics salliepg;
  2. PFont salliefont;
  3.  
  4. void setup() {
  5. size(960,600);
  6. smooth(10);
  7.  
  8. salliepg = createGraphics(width,height);
  9. salliefont = createFont("BEBAS", 50, true);
  10.  
  11. salliepg.beginDraw();
  12. salliepg.noStroke();
  13. salliepg.fill(255);
  14. salliepg.textAlign(CENTER);
  15. salliepg.textFont(salliefont, 150);
  16. salliepg.text("GLITCH", salliepg.width/2, salliepg.height/2+50);
  17. salliepg.endDraw();
  18.  
  19. frameRate(15);
  20. }
  21.  
  22. void draw(){
  23. background(0);
  24. //image(salliepg, 0, 0);
  25.  
  26. for (int i=0; i<50000; i++){
  27. int x = int(random(width));
  28. int y = int(random(height));
  29.  
  30. color c = salliepg.get(x, y);
  31. noFill();
  32. stroke(c);
  33. rect(x, y, random(15), random(1));
  34. }
  35.  
  36. //saveFrame("tg-#####.png");
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement