Problem with display image series
in
Contributed Library Questions
•
8 months ago
Hello Processing forum,
I have problem with displaying image in a Applet, while writing a serie of images with code like this:
I have problem with displaying image in a Applet, while writing a serie of images with code like this:
- pg.beginDraw();
- pg.background(255);
- pg.stroke(0,0,0);
- pg.line(0,400,20,400);
- pg.line(20,400,20,390);
- pg.line(20,390,30,390);
- pg.line(30,390,30,380);
- pg.line(30,380,10,380);
- pg.line(10,380,10,390);
- pg.line(10,390,0,390);
- pg.line(0,390,0,400);
- pg.textFont(f, 16);
- pg.fill(0);
- pg.text("score "+score,10,40);
- pg.endDraw();
- image(pg, 0, 0);
- save(directory+"shape.png");
- gifExport.setDelay(200);
- gifExport.addFrame();
All files are saved correctly, but only the last picture is shown after a long time.
Rest of the time the screen is empty.
Thanks for Help
Rest of the time the screen is empty.
Thanks for Help
1