PaintBrush is NOT an application, it's a public domain class that can be used in various drawing applications or games.
It's really simple to use. You just set a destination surface and a surface to be used as a brush.
Then you can set the color and alpha value for that brush. You can also tell the brush to be rotated in the drawing direction.
It's also possible to specify a line pattern to be able to draw dotted lines.
About the Demos
The source package includes two different demos of how to use the PaintBrush class.
In the AdvancedDemo.py you can try out all advanced features and in the SimpleDemo.py you can see how easy it is to use the class.
You start them by "python AdvancedDemo.py" and "python SimpleDemo.py".
What's new since v1.0?
The only change is to the help text of the AdvancedDemo.py. I forgot to add that you can use the right mouse button to draw lines.
- PaintBrush_v1.1.zip - Source code.
- This code is Public Domain.
Comment this project:
cve4me 2011-10-27 20:48:20 steelman 2011-04-12 16:49:35 Zachariah Callaway 2011-03-01 17:53:33 Rick Gibson 2010-03-12 14:45:36 master chief 2009-12-17 03:19:38 View all