[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Gradient Algorithm
On Sat, 2006-08-05 at 17:29 -0400, Kris Schnee wrote:
> Here is some code I built for my interface system (Driftwood),
> specifically for filling a rectangular area with a vertical gradient.
> That is, it starts with one color at the top and smoothly blends to a
> second color at the bottom. You can use this code if you want.
You may also want to check out the pygame example programs that includes
a Numeric version of vertical gradients.