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

Implementation in Processing.h / Processing.cpp:

Loading...