createGraphics()

Rendering

Description

Creates an off-screen rendering surface (PGraphics). Draw into it using beginDraw()/endDraw(), then display with image().

Syntax

PGraphics* createGraphics(int w, int h)

Parameters

NameTypeDescription
wintwidth of the graphics buffer
hintheight of the graphics buffer

Returns

PGraphics*

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...