Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
paraffin
paraffin's Profile
1
Posts
0
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
I'm trying to darken every pixel in the frame by a fixed amount every time draw() runs. How do I accomplish this?
[1 Reply]
28-Feb-2011 11:01 PM
Forum:
Programming Questions
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.
«Prev
Next »
Moderate user : paraffin
Forum