[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Fade to black question...
I think the fade things are best accomplished using the alpha solution mentioned earlier. If you want stuff like three-way-fades, you'll want surfarray or some such.
surf1 = #whatever
surf2 = #whatever (entirely black or white surface, etc.).
for step in xrange(transition_length):
surf1.set_alpha(int(round((float(step)/transition_length)*255.0)))
#draw surf1 over surf2