Change color of specific part of image.

pretty-simple-gina-de-gorna.jpg

Let say the image i am displaying is the image at the top.

I want to change the yellow part of the image to purple.

Without displaying a copy of the yellow part ontop of the image and changing that color of that to purple;

is there anyway to specifically change the color of the yellow part through code or somethin’.

I’m afraid not, corona doesnt do pixel coloring like that.

You can get a color from an image but to use it to color something, you need a display object to set the color for.

And before you go there, making a display object per pixel quickly gets slow as resolution increases.

Corona just isnt a software to make drawing apps in.

Q: Maybe possible with shader?  I’ll leave this to a shader expert.

perhaps, but for image maniupulation and drawing applications, there are better tools out there that will make corona blush.

xamarin and .net comes to mind but i’m no expert on this, just know corona isnt good at it ( i tried to make a coloring book app)

I see…

How can you find out the color of a pixel on an object?

https://docs.coronalabs.com/api/library/display/colorSample.html

Ah thank you!

I’m afraid not, corona doesnt do pixel coloring like that.

You can get a color from an image but to use it to color something, you need a display object to set the color for.

And before you go there, making a display object per pixel quickly gets slow as resolution increases.

Corona just isnt a software to make drawing apps in.

Q: Maybe possible with shader?  I’ll leave this to a shader expert.

perhaps, but for image maniupulation and drawing applications, there are better tools out there that will make corona blush.

xamarin and .net comes to mind but i’m no expert on this, just know corona isnt good at it ( i tried to make a coloring book app)

I see…

How can you find out the color of a pixel on an object?

https://docs.coronalabs.com/api/library/display/colorSample.html

Ah thank you!