Upgrade your browser Download Chrome Download Chrome Download Firefox Download Firefox Download Opera Download Opera Download Safari Download Safari Download Explorer Download Explorer

Check out our newest children's book for iPad & iPhone: Who's in the Loo? Download Close

Robot Media

Blog

RMPaint: an Open Source Painting Library for iOS

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.

4 thoughts on “RMPaint: an Open Source Painting Library for iOS

  1. Oriol says:

    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.

  2. admin says:

    Hi Oriol!

    Yes, there is an example included. It’s: https://github.com/robotmedia/rmpaint-ios/tree/master/RMPaint/RMPaintExample

  3. lord says:

    Is it possible to implement undo and redo using this library? Thanks a lot….

  4. Oriol says:

    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.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>