I'm trying to darken every pixel in the frame by a fixed amount every time draw() runs. How do I accomplish this?
in
Programming Questions
•
2 years ago
Currently I'm using
for(int i=0; i<width*height; i++)
{
pixels[i] = pixels[i] << 1;
}
But that gets weird because it just kinda messes with the colors until they go to black.
Is there any way to access the HSB, RGB, or hex values of a pixel returned from get(x, y) or pixels[i]?
Thanks in advance.
1