Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

PeterCushion

macrumors newbie
Original poster
Jan 4, 2010
1
0
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
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
Do a search. One of our Indian sounding friends asked the same some months back (then got very upset when the SDK didn't provide a one-line solution). Basically I'd look at implementing a flood-fill algorithm (see wikipedia).

Edit to add: here is that wonderful thread
 

iphonejudy

macrumors 6502
Sep 12, 2008
301
1
Hi peter,


The better solution is spliting the whole image in to separate layers then apply color
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.