Last updated 1 year ago
JS ⟩ value ⟩ primitive ⟩ number ⟩ integers
x | 0 // x -> integer
const pixelRatio = window.devicePixelRatio; const width = canvas.clientWidth * pixelRatio | 0; const height = canvas.clientHeight * pixelRatio | 0;
three.js