My favorite pieces of art revisited
By Maxime Biais, Sunday 9 September 2007 at 20:57 :: Art :: #53 :: rss
I wrote a small Processing script that take a picture apply a kind of pointillize filter and save a PDF file. Here sample output I generated from some of my favorites pieces of art:
- Wassily Kandinsky

Download 1600x1200 Wassily Kandinsky Revisited
- Paul Klee

Download 1600x1200 Paul Klee Revisited
- Bernard Buffet

Download 1600x1200 Bernard Buffet Revisited
- Alfred Gockel

Download 1600x1200 Alfred Gockel Revisited
- Joan Miro

Download 1600x1200 Joan Miro Revisited
The code:
PImage a; import processing.pdf.*; void setup() { a = loadImage("INPUT.jpg"); size(1600, 1200, PDF, "OUTPUT.pdf"); background(255); noStroke(); smooth(); noLoop(); } float drawOne(int x, int y, color pix, float size, int alpha) { fill(pix, random(50)+alpha); size = random(size); ellipse(x, y, size, size); return size; } void drawAll(int loops, float isize) { float size; int x, y; color pix; for (int i = 0; i < loops; i++) { size = isize; x = int(random(a.width)); y = int(random(a.height)); pix = a.get(x, y); size = drawOne(x, y, pix, size, 100); size = drawOne(x, y, color(255, 255,255), size, 170); size = drawOne(x, y, pix, size, 100); } } void draw() { int l = 10; for (int i = l; i > 0; i--){ drawAll(200 * (l - i), 50*i); } exit(); }




Comments
1. Thursday 27 March 2008 at 23:17, by Greng
2. Thursday 17 April 2008 at 03:47, by bruno
3. Monday 20 October 2008 at 18:58, by Francis
4. Monday 3 November 2008 at 12:12, by Luong Nguyen
5. Saturday 15 November 2008 at 04:06, by Paola
6. Sunday 18 January 2009 at 02:28, by Xanadora
7. Sunday 1 February 2009 at 19:58, by guga
8. Monday 26 October 2009 at 13:54, by http://casinodellarete.com/
Write your comment