pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
gradients

gradients - rev106

DR0ID (dr0id)

Tags:

Description

gradients in any dirction, line-, circular- or rectangular-shaped. Each color can have its own function for non linear gradients and maximal control of the gradient characteristic. All this in a easy to use function.
There is even amore powerfull function, actually a highfiled drawer. The pattern in the small rectangular are in the screenshot has been generated with it.

Changes

Split the different kinds of gradients into own functions. There are new functions too. Check out the demo. Numeric is only 2-3 times faster. If you know a faster way to do gradients in pure python/pygame please tell me.

Links

Home Page: http://dr0id.homepage.bluewin.ch/pygame_projects.html#gradients
Source: http://mypage.bluewin.ch/DR0ID/pygame/gradients_rev106.zip

Screenshot


click to view original size

Releases

gradients - same as before - Jan 17, 2011
gradients - same as before - Oct 12, 2008
gradients - rev109 - Aug 9, 2007
gradients - rev106 - Aug 9, 2007
gradients - gradients - Oct 5, 2006

Pygame.org account Comments

If you wish to leave a comment with your pygame.org account, please sign in first.

January 5, 2011 2:30pm - Magnus L - nickname: (magnet) - 4/5
Broken download link
moved to:
http://dr0id.homepage.bluewin.ch/pygame/gradients_rev109.zip

Though other than that Great job DR0D ;D
bit slow
January 1, 2011 2:38pm - Gummbum - nickname: (gummbum)
Wow. Excellent work. Very fast. Nice demo (a numpy update for vgrade.py would be super). Not only can it add bling, it has GFX potential. Definitely bookmarking this.
October 21, 2008 11:00am - pymike - nickname: (pymike)
I tried it. Very nice, and very fast! I might use it in one of my upcoming games.
October 12, 2008 10:48pm - Ian Mallett - nickname: (geometrian)
I don't know about anyone else, but the demo is stunningly fast!
December 24, 2006 8:28am - Kyle Stewart - nickname: (hexdecimal) - 4/5
Don't worry, I've tried it.
I haven't used it for anything special, but I can think of many situations where it could be used. I just haven't encountered any of them yet.
Also, it's in Python code and is too slow to do any real-time gradients. I tried psyco but it didn't work in the demo.
It's a great module anyway and I like it.
December 20, 2006 2:46pm - DR0ID - nickname: (dr0id)
no comments? did anyone try to use it?
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Sep 9, 2014

Sep 8, 2014

Sep 7, 2014


Sep 5, 2014

Aug 26, 2014

Aug 22, 2014

Aug 21, 2014


Aug 18, 2014

Aug 2, 2014


... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)