I’ve got two codes, and I want to put them together, but just can’t manage…
I want the lines drawn in the first code to fade as they do in the second.
(So a white background and the black lines.)
by changing “background(0)” to “background(NEWEST)” (NEWEST because you have change the color range) and by changing “stroke(i)” to “stroke(NEWEST - i)” you will get black lines on a white background. as for the start just change this
for (int i = NUM; i-- != 0; x[i] = center.x+ cos(angle)*radius+random(-150,150), y[i] = center.y + sin(angle)*radius+random(-200,200));
to
for (int i = NUM; i-- != 0; x[i] = center.x, y[i] = center.y);
also bookmark this page so you can find out anything you need about processing.
Alright, one last and final question…
Everything is working perfectly now, but I’d like the background to be alpha instead of white and can’t figger it out because you’re using the background as the fader of the lines right?
What do you mean by this? The background command itself (the canvas) does not support alpha. It can’t be a clear app window floating on the desktop; you have to pick a color.