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)
   smooth alpha? bug
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: smooth alpha? bug  (Read 434 times)
Jerronimo

WWW
smooth alpha? bug
« on: Nov 13th, 2003, 8:43pm »

don't know if this was found or not, but it's become a pain in the butt to me.
 
if smooth() is enabled, ellipses with a strokeWeight of 1 will not be affected by any draw over them... they remain at the top of the screen.  This is shown by the above code.  I draw a rectangle over all of it with a low alpha value (fade out effect) and it doesn't seem to have any change over the circle drawn with a weight of 1, whereas the circle with a weight other than one is affected...
 
Code:

// setup - initialize stuff  
void setup()
{
  size( 300, 300 );
  background( 0 );
  noFill();
  ellipseMode( CENTER_DIAMETER );
  stroke( 255 );
  smooth();  // comment this to hide the bug
}
 
void loop()
{
  // fade out
  fill( 0, 20 );
  noStroke();
  rect( 0, 0, width, height );  
   
  if( mousePressed )
  {
    fill( 255 );
    rect( 20, 20, (width/2)-40, height-40 );
     
    noFill();
    stroke( 255 );
     
    // this one will not fade
    strokeWeight( 1 );
    ellipse( width*3/4, height*3/4, 100, 100 );
 
    // this one will
    strokeWeight( 3 );
    ellipse( width*3/4, height/4, 100, 100 );
  }
}
 
fry


WWW
Re: smooth alpha? bug
« Reply #1 on: Nov 23rd, 2003, 11:50pm »

hm, that sounds fishy.. will look into it.
 
Pages: 1 

« Previous topic | Next topic »