Skip to content
This repository was archived by the owner on Aug 14, 2018. It is now read-only.
This repository was archived by the owner on Aug 14, 2018. It is now read-only.

Making a new PGraphics and displaying causes NullPointer #68

@GKFX

Description

@GKFX

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

No one assigned

    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