Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- color[] palette = {
- #FF0000, #00FF00, #0000FF
- };
- void setup() {
- size(800, 450, P2D);
- background(0);
- blendMode(SCREEN);
- }
- void draw() {
- fill(palette[int(random(3))]);
- //if (random(1)>.9) fill(#ffffff);
- float sz = random(30, 100);
- ellipse(random(width), random(height), sz, sz);
- filter(BLUR, .6);
- //if (frameCount<500) saveFrame("image-####.tif");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement