jes

Fading a picture gradually (Python, Jython)

Sorry, I'm obviously new at this, but the idea of this function is to fade the top half only of the picture (make it gradually darker). Here is what I have but it seems to be making all of the top half solid black. Any help would be appreciated. Correct code edited in. Question resolved. Thanks Justin and everyone else! def fadeDow...

JES - Create picture with rectangles, circles and half-circles

http://u.snelhest.org/i/2010/07/06_3754.png I'm trying to draw this picture in JES, jython. I've forgotten some of the basic math from school, so it's kinda difficult . I've done the full circle, but i'm not sure how to continue from there. Each rectangle, half-circle and circle is inset by 10 pixels, and the picture is a 200x200 squar...