Page 1 of 1

Grab color/pixel info from an Image?

Posted: Tue Feb 23, 2016 9:14 pm
by dizzykiwi3
I was wondering if it was possible to grab color/pixel information from an image and use that data. More specifically I was hoping I could automate platform creation by marking an image with certain colors (say, red for platform edges), analyzing the image through some love/shader feature or some utility that could convert it to xml, and then converting that data into usable table information for platform detection.

Many thanks!

Re: Grab color/pixel info from an Image?

Posted: Tue Feb 23, 2016 9:42 pm
by Jasoco

Re: Grab color/pixel info from an Image?

Posted: Fri Feb 26, 2016 3:00 pm
by T-Bone
And an ImageData object can be obtained from an Image via https://love2d.org/wiki/%28Image%29:getData, if you already have an Image object.