Here's my creation. I wanted to create an effect of paint dripping down a canvas, plus have more "psychedelic" colors. So I added some code that randomly changes the color every 10 times we call recordLine:
CODE
if (switchHue == 0) {
randomHue = random(255);
lineHue = (lineHue * randomHue) % 255;
switchHue = 10;
}
switchHue--;
and then added some code to transform only the Y coordinate in the downward direction:
CODE
for(int k=0; k<totalVectors; k++) {
int whichVector = k % 25;
float transform = 0;
switch (whichVector) {
case 0: transform = 1.000; break;
case 1: transform = 1.002; break;
case 2: transform = 1.003; break;
case 3: transform = 1.004; break;
default: transform = 1.000; break;
}
//vectorArrayX[k] *=transform;
vectorArrayY[k] *=transform;
I've attached a screenshot. This is so much fun!
Elisabeth