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)
   ellipse - fill bug (?)
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: ellipse - fill bug (?)  (Read 343 times)
kevinP

Email
ellipse - fill bug (?)
« on: Feb 26th, 2004, 11:32pm »

Hi,
 
The rectangle is filled with grey and sits on top of the circle, which should also be filled with grey. But the circle displays my gradient background instead.  
Code:

// #html Ellipse should be filled.
 
int ctrX, ctrY;
 
void setup()
{
  size(200, 200);
  ctrX = width/2;
  ctrY = ctrX;
  smooth();
  ellipseMode(CENTER_DIAMETER);
  rectMode(CENTER_DIAMETER);
  fill(50, 50, 50);
}
 
void loop()
{
    myBackground();
    stroke(150, 150, 150);
    ellipse(ctrX, ctrY, 120, 120); // should be filled!
    rect(ctrX, ctrY, 50, 50);      // rect() is okay.
}
 
void myBackground()
{
    float r = -20;
    float g = -40;
    float b = 50;
 
    for(int i = 0; i < height; i++) {
        stroke(r +=.6, g += 1, b += 1);
        line(0,i, width,i);
    }
}
« Last Edit: Feb 26th, 2004, 11:35pm by kevinP »  

Kevin Pfeiffer
toxi_
Guest
Email
Re: ellipse - fill bug (?)
« Reply #1 on: Feb 27th, 2004, 1:05pm »

erm... that seems to be another bug related to smooth(). for now, it only works with smooth() removed... thanks!
 
fry


WWW
Re: ellipse - fill bug (?)
« Reply #2 on: Feb 27th, 2004, 6:01pm »

noted, thanks..
 
Pages: 1 

« Previous topic | Next topic »