Colouring part of an image

Nibbie
Posts: 1
Joined: 2010.01
Post: #1
Hi Everyone

Can anyone point me in the right direction as to how I can create a children's colouring book style App? I have all the images but am getting a little lost with the best approach - should I split the image up into layers? Ideally I'd like to be able to detect where the user has tapped on a single image and colour that part.

If there are any tutorials (on-line or books) or source code examples anybody is aware of it would be much appreciated.

Thanks in advance
Quote this message in a reply
Member
Posts: 22
Joined: 2007.07
Post: #2
If your images are relatively simple you can just use a flood fill. If you have more complicated source images, or you want more fine control over the shape of colored regions then in addition to the image, you should have a file describing the separate regions in the image - maybe using a vector format like SVG - and then map mouse clicks to locations within those regions.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Sharing textures in AGL contexts? Part II isgoed 3 3,181 Oct 6, 2004 12:06 AM
Last Post: isgoed
  Part III of SPUP (uDG poll) stevejohnson 12 5,589 Aug 4, 2003 05:10 PM
Last Post: Carlos Camacho