FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Bugs
   Software Bugs
(Moderator: fry)
   Stroke Transparency Bug
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Stroke Transparency Bug  (Read 792 times)
mgorbet


Stroke Transparency Bug
« on: Feb 10th, 2004, 4:17am »

Been seeing a bunch of different odd behaviour with stroke transparency and drawing order.
 
Strokes don't seem to fade properly in the following example.
 
 
Code:

 
float dia = 50;  
float a=0;  
 
void setup()  
{  
  size(200, 200);  
  background(100);  
  fill(255);  
  ellipseMode(CENTER_DIAMETER);  
}  
 
void loop()  
{  
 
  // noStroke();    
 
  fill(0, 10);  
  rect(0,0,width, height);  
  fill(128);  
  stroke(255);  
    
  a+=0.01;  
 
  ellipse(mouseX, mouseY, 10, 10);  
  
  translate(width/2, height/2);  
  rotate(a);  
  ellipse(50, 0, dia, dia);  
  noStroke();  
    
  ellipse(-50, 0, dia, dia);  
 
}  
 

 
 
Here, the strokes being drawn for the ellipse that follows the mouse are fading, and the fill for the rotating elipses are fading, but the strokes on the rotating one are not.  
 
Version: Alpha0068  
OS: WinXP  
PC: IBM Thinkpad  
 
Thanks!
Matt
« Last Edit: Feb 10th, 2004, 4:19am by mgorbet »  
fry


WWW
Re: Stroke Transparency Bug
« Reply #1 on: Feb 11th, 2004, 3:50pm »

yeah, stroke on circles is a little bit broken since it uses "optimized" code, but then had some alpha issues.. i'll make a note to repair in the next release.
 
Pages: 1 

« Previous topic | Next topic »