๐Ÿ”ฐintegers

JS โŸฉ value โŸฉ primitive โŸฉ number โŸฉ integers

const pixelRatio = window.devicePixelRatio;
const width  = canvas.clientWidth  * pixelRatio | 0;
const height = canvas.clientHeight * pixelRatio | 0;

๐Ÿ‘‰ three.js

Last updated

Was this helpful?