Phaser API Documentation

  Version: 

Member of: Phaser.Math

<static> FromPercent(percent, min, [max])

Description:

Return a value based on the range between min and max and the percentage given.

Parameters:

name type arguments description
percent number

A value between 0 and 1 representing the percentage.

min number

The minimum value.

max number <optional>

The maximum value.

Returns:
Description:

The value that is percent percent between min and max.

Type:
  • number
Examples:
Since: 3.0.0
Source: src/math/FromPercent.js (Line 9)