size()

Environment

Description

Defines the dimension of the display window. Call in setup(). Optionally pass P2D or P3D as renderer.

Syntax

void size(int w, int h) void size(int w, int h, int renderer)

Parameters

NameTypeDescription
wintwidth of the window in pixels
hintheight of the window in pixels
rendererintP2D or P3D (optional)

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...