|
||||||||
|
"Art is never finished, only abandoned." - Leonardo da Vinci archive: February 2010 (1) January 2010 (8) December 2009 (6) November 2009 (3) October 2009 (5) September 2009 (1) August 2009 (4) May 2009 (5) April 2009 (6) March 2009 (4) February 2009 (7) January 2009 (9) December 2008 (11) November 2008 (4) October 2008 (5) September 2008 (1)
Coming Soon: The Book
|
|||||||
|
Can see anything? This site requires the latest version of Java in your browser. Download it from here, or right-click the coffee cup in your taskbar. |
||||||||
January 13th, 2009 at 8:51 pm
This is a beautiful effect. Seeing it in motion makes it all the more interesting. I might have to steal it for my iTunes visualizer, good thing you provided source…
January 23rd, 2009 at 4:11 am
January 31st, 2009 at 6:18 pm
Hey Matt,
I just pinched the colourSample code, but it looks like it only samples the top line rather than the whole picture because the step size is 1 pixel. I’ve changed mine to:
void sampleColour() {
PImage img = loadImage(”data/bottles.jpg”);
image(img,0,0);
int count = 0;
int stepX = img.width / floor(sqrt(numcols));
int stepY = img.height / floor(sqrt(numcols));
for (int x=0; x < img.width; x+=stepX){
for (int y=0; y < img.height; y+=stepY) {
if (count < numcols) {
color c = get(x,y);
colArr[count] = c;
}
count++;
}
}
}
February 19th, 2009 at 3:19 pm
Thanks Jez.
Bad thing about open source – everyone sees your mistakes.
Good thing about open source – nice folks correct them for you.
April 19th, 2009 at 3:32 am
August 31st, 2009 at 8:25 pm
This looks great i´ll take a look to the code and try to do something fun !!