레퍼런스 pixelDensity()

pixelDensity()

Gets or sets the pixel density for high pixel density displays.

By default, the density will be set to 1.

Call this method with no arguments to get the default density, or pass in a number to set the density. If a non-positive number is provided, it defaults to 1.

구문

pixelDensity([density])

매개변수

density

A scaling factor for the number of pixels per side

Notice any errors or typos? Please let us know. Please feel free to edit src/image/p5.Image.js and open a pull request!

관련 레퍼런스