some time ago i wrote the following sketch. is a circle with a circular white / alpha gradient and copied to the screen in different colours multiple times, whilst spinning. and stuff. not much to it really but it turned out nice
link to zip containing code and image is here
http://www.flickr.com/photos/31962137@N00/1103167546/
main loop is here. i set the colour and then draw the (white and alpha) image to the screen.
Code:
for (int i = 0 ; i < CIRCLES ; i++) {
Circle c = circles[i];
pushMatrix();
fill(colours[c.index]);
beginShape(QUADS);
texture(image);
textureMode(NORMALIZED);
vertex(c.x + -blobSize, c.y + -blobSize, c.z, 0, 0);
vertex(c.x + -blobSize, c.y + blobSize, c.z, 0, 1);
vertex(c.x + blobSize, c.y + blobSize, c.z, 1, 1);
vertex(c.x + blobSize, c.y + -blobSize, c.z, 1, 0);
endShape();
popMatrix();
}
but when i run the code (and same image) now i get only white circles, it's like the fill doesn't affect the circle like it did.
has this changed? what can i do to fix it (if anything)?