Bug 1085 : background(PGraphics) is transparent in saveFrame(String)
Last modified: 2008-12-01 09:58




Status:
RESOLVED
Resolution:
INVALID -
Priority:
P2
Severity:
normal

 

Reporter:
fjen
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2008-12-01 09:37
example:

PGraphics pg;

void setup ()
{
size( 300, 300 );
pg = createGraphics(width,height,g.getClass().getName());
pg.background(255);
pg.beginDraw();
pg.rect( width/2,height/2,20,20 );
pg.endDraw();
}

void draw ()
{
background( pg );

saveFrame( "test.png" );
}

the test.png is rendered with a black (transparent?) background although it has been filled
woth white before.

F
Additional Comment #1 From fry 2008-12-01 09:41
whatcha doing calling background() outside of beginDraw()?
Additional Comment #2 From fjen 2008-12-01 09:58
ohno, so right! how stupid ..

F