Bug 534 : Using PGraphics instance with fill() produces no fill
Last modified: 2007-03-13 04:05




Status:
RESOLVED
Resolution:
DUPLICATE of bug 468
Priority:
P2
Severity:
normal

 

Reporter:
mikecreighton
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2007-03-11 19:33
Revision 0123 and 0124 BETA

When attempting to recreate the example used in the following reference
page for createGraphics():

http://www.processing.org/reference/createGraphics_.html

And instead of simply drawing a line, I draw a shape with a fill. It seems
that nothing is being drawn in the area that should be filled.

[code]
PGraphics pg;

void setup() {
size(512, 512, P3D);
pg = createGraphics(400, 400, P3D);
}

void draw() {
pg.beginDraw();
pg.background(255);
pg.stroke(128);
pg.fill(0);
pg.ellipse(mouseX - 50, mouseY - 50, 100, 100);
// pg.line(200, 200, mouseX - 50, mouseY - 50);
pg.endDraw();

image(pg, 50, 50);
}
[/code]

I have attempted to change the two renderers used (for the size() method
and the createGraphics() method) -- using all the different combinations
available to me. Keeping the two in lockstep as JAVA2D prevents any redraw
from happening at all. And other combinations yield the same visual glitch.
Additional Comment #1 From mikecreighton 2007-03-11 19:37
This is a duplicate of:

<a hef="bug 468</a>

<a href="bug 527</a>
Additional Comment #2 From fry 2007-03-13 03:05


*** This bug has been marked as a duplicate of 468 ***