Skip to main content

gradients - rev106

gradients in pygame without using numeric


DR0ID
(dr0id)
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 areas in the screenshot have 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
https://dr0id.bitbucket.io/legacy/pygame_projects.html#gradients
Source
http://mypage.bluewin.ch/DR0ID/pygame/gradients_rev106.zip

Releases

gradients gradients — 5 Oct, 2006

gradients rev109 — 9 Aug, 2007

gradients rev106 — 9 Aug, 2007

gradients same as before — 12 Oct, 2008

gradients same as before — 17 Jan, 2011

gradients same as before — 25 Jan, 2018

Pygame.org account Comments

  • raubana 2014-02-19 19:44

    Very impressive! Runs amazingly fast.

  • Teodor Halvadzhiev 2014-12-23 13:56

    Is there any way I could use stopping points and gradients between multiple colours?

  • Johan 2017-05-04 18:36

    Where can you download this? The link appears to be broken?