Filling image with different color on touch event

Hi,
I am working on apps and now looking for fill different color on images touch event. This means if user touch a specific part of images then the color will apply on that particular area.
Is it possible?

Thanks. [import]uid: 75428 topic_id: 12431 reply_id: 312431[/import]

@sabir, you are looking for FloodFill, that is not possible at this moment with CoronaSDK. However you can fake that by creating polygon regions that can be filled with a colour that are the shape of the area you want to colour.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 12431 reply_id: 45373[/import]

I don’t think it is currently supported. and am sure it will be in “features to be added” pipeline.
If you really want to do this before this feature is added I suggest mapping the X,Y coordinates of the area into an array and create display objects at that position and use setFillColor() function. [import]uid: 71210 topic_id: 12431 reply_id: 45374[/import]

@jayantv : setFillColor() doesn’t seems to be working with polylines. is there any other way to fill inside the polyline shapes ? [import]uid: 71210 topic_id: 12431 reply_id: 45380[/import]