width
EnvironmentDescription
System variable storing the width of the display window as set by size().
Syntax
width
Parameters
None
Returns
intRelated
Under the Hood
From Processing.h:
public:
int width = 0;
width = w;
width=w;
: width(o.width), height(o.height), pixels(std::move(o.pixels)),
texID(o.texID), dirty(o.dirty) { o.texID=0; }
float width = 0;
width =(maxx>-1e8)?(maxx-minx):0;
int& width = logicalW;
Under the Hood
From Processing.cpp:
gi.width = img->width;