Advertisement
xeromino

acidrain

Mar 15th, 2014
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. color[] palette = {
  2.   #FF0000, #00FF00, #0000FF
  3. };
  4.  
  5. void setup() {
  6.   size(800, 450, P2D);
  7.   background(0);
  8.   blendMode(SCREEN);
  9. }
  10.  
  11. void draw() {
  12.   fill(palette[int(random(3))]);  
  13.   //if (random(1)>.9) fill(#ffffff);
  14.   float sz = random(30, 100);
  15.   ellipse(random(width), random(height), sz, sz);
  16.   filter(BLUR, .6);
  17.  
  18.   //if (frameCount<500) saveFrame("image-####.tif");
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement