On Tue, Jun 10, 2003 at 11:18:36AM -0300, Rob Shortt wrote:
> I will get a class for this into CVS, which probably won't be really 
> pretty but perhaps you could help with that part.  Drawing a circular 
> progress meter will be easy (we'll do that as a first step), then we can 
> work on the oval and fading colour part.

The oval part might work better as a png file, since it's more work to
draw a circle then most objects in pygame; as for the color fading,
it's pretty easy, just cycle one of the colors in the RGB, i.e. for a
red bar:

for c in range(1,256): # don't ask why it's 256, but otherwise it
                       # doesn't get to 0xff
    col = hex(c) + '0000'
    # draw ray

And we just step the 1-255 by increments if there are less than 255
rays, same idea for G or B. Any other colors is more trouble than it's
worth. Green or red would be fine.

Aubin


-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to