Touch painting is a very requested feature in our children’s book apps and is also a part of Storybuilder, our children’s book authoring tool. Instead of repeating code over and over again we decided to create a library just for it: RMPaint. And we made it open source while we were at it.
RMPaint is an iOS painting library based in the GLPaint example by Apple. Its main features to date are:
- Paint with touch gestures
- Dynamic brush and color
- Save and restore painting sessions
- Designed for iOS 5 with ARC
As usual, we invite developers to fork RMPaint and contribute or request improvements. We will be adding more features shortly.
Hey,
I’ve been looking at this example and I saw that there’s not any kind of Storyboard or any kind of template. When I execute it, I don’t know if I have to do anything special or recycle the GLPaint example to make the tests. Can you upload something that I can test to understand it better?
Thanks.
Hi Oriol!
Yes, there is an example included. It’s: https://github.com/robotmedia/rmpaint-ios/tree/master/RMPaint/RMPaintExample
Is it possible to implement undo and redo using this library? Thanks a lot….
Hi!
I’ve been using RMPaint for a while and I have seen that when you draw quickly, the precision is lower. I guess that RMPaint would be better if, instead using “renderLineFromPoint toPoint”, it uses the Bénzier algorithm.
I don’t know if it’s possible, but I think that it would be a good improvement.