size()
EnvironmentDescription
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
| Name | Type | Description |
|---|---|---|
| w | int | width of the window in pixels |
| h | int | height of the window in pixels |
| renderer | int | P2D or P3D (optional) |
Returns
voidRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...