"Color image:pixel(x, y) --get"
how can i manipulate the data from this object?
for example, if i want to know what is the red value of the pixel at 3,9 on a image.. how do i find out?
basically, i'm trying to create a fade function to fade parts of the screen, but i don't know any way to find the rgb value of a given pixel.
manipulating pixel Color
Moderators: Shine, Insert_witty_name
manipulating pixel Color
Chaosmachine Studios: High Quality Homebrew.
Re: manipulating pixel Color
Try yourColorObject:colors().r for the red component of a color object (and g, b, a for green, blue and alpha components). But I think a fading is too slow with Lua Player with this method, we need some 2D graphics library or OpenGL for it.
thanks, that works.. but you're right, it's very slow :\
Chaosmachine Studios: High Quality Homebrew.