melonjs
    Preparing search index...

    Function nextPowerOfTwo

    • returns the next power of two for the given value

      Parameters

      • val: number

        any number

      Returns number

      next power of two relative to the given number