pixelDensity()

Environment

Description

Sets the pixel density for high-DPI (HiDPI/Retina) displays.

Syntax

void pixelDensity(int d)

Parameters

NameTypeDescription
dintpixel density (1 or 2)

Returns

void

Related

Under the Hood

From Processing.h:

void pixelDensity(int d);

Under the Hood

From Processing.cpp:

void PApplet::pixelDensity(int d){pixelDensityValue=d;}