|
|||||||
|
"Art is never finished, only abandoned." - Leonardo da Vinci archive: May 2013 (7) April 2013 (9) December 2010 (4) November 2010 (5) October 2010 (1) September 2010 (10) August 2010 (9) July 2010 (6) June 2010 (5) February 2010 (2) January 2010 (3) December 2009 (3) 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)
|
||||||
|
Can't see anything? Early posts on this site required the Java browser plugin. 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 !!
November 5th, 2010 at 10:43 am
November 22nd, 2011 at 4:10 am