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_
   Programming Questions & Help
   Programs
(Moderators: fry, REAS)
   Fading Strokes?
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Fading Strokes?  (Read 374 times)
mgorbet


Fading Strokes?
« on: Feb 9th, 2004, 9:30pm »

Hi all, this is my first post.  
 
I'm having trouble with what seems like a bug but I haven't seen it reported - am I missing something?
 
The following code:
 
Code:

void setup()
{
  size(200, 200);
  background(100);
  fill(255);
  ellipseMode(CENTER_DIAMETER);
}
 
void loop()  
{
 
  noStroke();  
 
  fill(102, 5);
  rect(0,0,width, height);
  fill(255);
  ellipse(mouseX, mouseY, 10, 10);
}

 
draws a fading trail of ellipses.
 
If you comment out the "noStroke()" line you should see the issue I'm talking about -- why don't the strokes fade?
 
Version: Alpha0068
OS: WinXP
PC: IBM Thinkpad
 
Thanks!
Matt  
 
PS - Hi Ben, Hi Casey!  Long time no see. Congrats on Processing it's *awesome*.
 
arielm

WWW
Re: Fading Strokes?
« Reply #1 on: Feb 9th, 2004, 9:33pm »

maybe because fill(102, 5) is acting only on fill-color?
 
you could check if stroke(102, 5) works too (i'm not sure of it off-hand...)
 

Ariel Malka | www.chronotext.org
mgorbet


Re: Fading Strokes?
« Reply #2 on: Feb 9th, 2004, 10:04pm »

Hmm... that didn't work but I found that if I set the stroke explicitly to 255 the phenomenon disappeared.
 
However, I'm still seeing a (related?) problem with the following code:
 
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.
 
Any ideas?  Should I move this to bugs?
 
Thanks.
<M>
 
REAS


WWW
Re: Fading Strokes?
« Reply #3 on: Feb 10th, 2004, 4:02am »

Hello Matt,
 
It's great to see you here!
Looks like a bug to me. Please post your second example into the bug section.
 
+ Casey
 
Pages: 1 

« Previous topic | Next topic »