Home
News
Learn
Download
Examples
Community
Plugins
Phaser API Documentation
Version:
Namespaces
Classes
Events
Game Objects
Physics
Scenes
Changelog
Member of:
Phaser.Math.Pow2
<static> GetNext(value)
Description:
Returns the nearest power of 2 to the given
value
.
Parameters:
name
type
description
value
number
The value.
Returns:
Description:
The nearest power of 2 to
value
.
Type:
number
Since:
3.0.0
Source:
src/math/pow2/GetPowerOfTwo.js
(Line
7
)
Possible examples