This is a minimal python plugin for GIMP. In contrary to gimpfu-based ones, these do have the functions also available in C plugins (query, init, run, quit) and can (actually, have to) use GTK+ directly to create a user interface.
I've attached an minimal-really.py plugin, which does only define what is needed for a plugin (query, and the functions to be used). 99% of all python plug-ins will most likely follow this structure.
This is a simple Unit-test-look-alike approach to test the functions available in Script-Fu. Currently, only the gimp-brush-* stuff is done (or at least each function is called at least once).
Everything is based on bunny-test, a framework available from http://community.schemewiki.org/?bunny-test and simple enough to be used with TinyScheme (more complete stuff relies on syntax not available in this implementation).
Turns any image into an amazing circle.
This script has three settings:
1. Circle depth, set the circle depth percentage when doing the distortion.
2. Surround colour, pick the colour that goes around the outside of circle.
3. Crop, when and if the image is cropped into a square.
Using 100% circle: