Phaser API Documentation

  Version: 

Member of: Phaser.Math.Pow2

<static> IsValue(value)

Description:

Tests the value and returns true if it is a power of two.

Parameters:

name type description
value number

The value to check if it's a power of two.

Returns:
Description:

Returns true if value is a power of two, otherwise false.

Type:
  • boolean
Since: 3.0.0