PaintBrush v1.1
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.
Screenshot
Related links
Downloads
- PaintBrush_v1.1.zip - Source code.
Copyright notice
- This code is Public Domain.
Comment this project:
cve4me 2011-10-27 20:48:20
Have been looking for this for years. will enjoy using it.
I think PyntBrush looks more familiar ;-) And remember that Microsoft's Paint for Windows 3.x was named Paintbrush http://en.wikipedia.org/wiki/Paint_%28software%29
Best regards,
>steelman
A .deb package of Paint Brush is available at dotdeb.com in the Graphics section.
Great program thanks for spending the time to develop this application.
The python demos were really a nice surprise.
Only wish the application had an easy way to draw shapes.
Still looking for a Kolourpaint replacement don't want to install the heavy KDE library.
Hi,
It's really not that hard to implement shapes.
As long as you can get the shape into separate points you can always use the paint_from (for the first point) and paint_to (for the rest of the points) to draw that shape.
If I can find the time I'll try to add a demo showing this as well.
Best Regards
/John Eriksson
suggestions or tips would be greatly appreciated


