FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 526 : can only draw PGraphics once offscreen with JAVA2D
Last modified: 2007-07-06 20:59
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
FIXED -
Pr
i
ority:
P1
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
ml
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2007-02-28 02:34
Example code below. The PGraphics is only updated once on the first frame,
and is then static. Any possible workaround?
Tested different versions of processing, not working with 0124 - 0123 - 0119.
I'm on windows xp.
PGraphics pg;
void setup() {
size(200, 200);
pg = createGraphics(80, 80, JAVA2D);
}
void draw() {
pg.beginDraw();
pg.background(102);
pg.stroke(255);
pg.line(40, 40, mouseX, mouseY);
pg.endDraw();
image(pg, 10, 10);
}
Additional Comment
#1 From fry 2007-03-07 17:06
just add
pg.modified = true;
after endDraw().
http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Syntax;action=display;num=1171574044
Additional Comment
#2 From fry 2007-06-18 21:02
now fixed for 0125.
Additional Comment
#3 From fry 2007-07-06 20:59
***
Bug 593
has been marked as a duplicate of this bug. ***