pixelDensity()
EnvironmentDescription
Sets the pixel density for high-DPI (HiDPI/Retina) displays.
Syntax
void pixelDensity(int d)
Parameters
| Name | Type | Description |
|---|---|---|
| d | int | pixel density (1 or 2) |
Returns
voidRelated
Under the Hood
From Processing.h:
void pixelDensity(int d);
Under the Hood
From Processing.cpp:
void PApplet::pixelDensity(int d){pixelDensityValue=d;}