I was making a program for editing terrains and i ended up making some cool painting effects. I didn't work on the GUI much but the top button is for deforming the terrain, the other buttons are for painting, the first 3 slider control the paint color, the 4th slider is the radius and the last is the strength. You can use the code for anything if you want.
Here are some screen shots:
![](http://www.mocosgames.com/1.jpg)
![](http://www.mocosgames.com/2.jpg)
![](http://www.mocosgames.com/3.jpg)
heres a link to download it:
http://www.mocosgames.com/x.zip