PixelEffect vs MapPixel (a cry for pixeleffect enlightenmen)
Posted: Thu Mar 15, 2012 3:13 pm
I'm currently trying to take a greyscale image and turn it into pure black and white every draw event.
Idon't know much about the way I should do this, but I think it should either be done by drawing to a framebuffer (or canvas), getting the framebuffer's imagedata, and then using a MapPixel function on the image data. This seems to be the easier method, as the color values are easy to manipulate, but I need to perform the mapping every draw event, and imagedata (or making a new image from it) specifically says that this isn't a good idea.
The second option seems to be using löve 0.8.0 and using PixelEffect, which appears to be much more speed-friendly. However, the wiki shows next to nothing on how to use these.
Therefore, could someone in the know please provide me (and other rookies) with some help or enlightenment on how to use PixelEffect?
Idon't know much about the way I should do this, but I think it should either be done by drawing to a framebuffer (or canvas), getting the framebuffer's imagedata, and then using a MapPixel function on the image data. This seems to be the easier method, as the color values are easy to manipulate, but I need to perform the mapping every draw event, and imagedata (or making a new image from it) specifically says that this isn't a good idea.
The second option seems to be using löve 0.8.0 and using PixelEffect, which appears to be much more speed-friendly. However, the wiki shows next to nothing on how to use these.
Therefore, could someone in the know please provide me (and other rookies) with some help or enlightenment on how to use PixelEffect?