Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PGraphics salliepg;
- PFont salliefont;
- void setup() {
- size(960,600);
- smooth(10);
- salliepg = createGraphics(width,height);
- salliefont = createFont("BEBAS", 50, true);
- salliepg.beginDraw();
- salliepg.noStroke();
- salliepg.fill(255);
- salliepg.textAlign(CENTER);
- salliepg.textFont(salliefont, 150);
- salliepg.text("GLITCH", salliepg.width/2, salliepg.height/2+50);
- salliepg.endDraw();
- frameRate(15);
- }
- void draw(){
- background(0);
- //image(salliepg, 0, 0);
- for (int i=0; i<50000; i++){
- int x = int(random(width));
- int y = int(random(height));
- color c = salliepg.get(x, y);
- noFill();
- stroke(c);
- rect(x, y, random(15), random(1));
- }
- //saveFrame("tg-#####.png");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement