Skip to content

Making a new PGraphics and displaying causes NullPointer #53

@processing-bugs

Description

@processing-bugs

Issue by GKFX
Saturday May 31, 2014 at 12:19 GMT
Originally opened as processing/processing-android-archive#68


The simplest form of this is:

PGraphics pg = createGraphics(100, 100);
pg.background(100); //optional
image(pg, 0, 0);

To rectify it, you need to type:

PGraphics pg = createGraphics(100, 100);
pg.background(#ff0000); //optional
pg.loadPixels();
image(pg, 0, 0);

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions