|
Author |
Topic: ellipse - fill bug (?) (Read 343 times) |
|
kevinP
|
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
|
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
|
Re: ellipse - fill bug (?)
« Reply #2 on: Feb 27th, 2004, 6:01pm » |
|
noted, thanks..
|
|
|
|
|