UNPKG

aframe-gui

Version:
1 lines 99 B
window.nearestPow2 = function ( n ) { Math.pow( 2, Math.round( Math.log( n ) / Math.log( 2 ) ) ) }