Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
camb416
camb416'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
Trails in OpenGL when using Alpha Blending
[0 Replies]
25-Jan-2012 02:32 PM
Forum:
Core Library Questions
I have always wondered about this and now the problem is popping up in a project...
How come drawing a rect over the screen with an opacity of "1" leaves trails?
When I use about a 16, it seems to work fine, but less alpha leaves old data on the screen... Any ideas would be wildly appreciated.
Thanks kindly,
C
import processing.opengl.*;
void setup(){
size(640,480,OPENGL);
background(255);
}
void draw(){
fill(0,0,0,1);
rect(0,0,width,height);
fill(255);
rect(mouseX-5,mouseY-5,10,10);
}
«Prev
Next »
Moderate user : camb416
Forum