Skip to content

Percentage

Introduction

Work out what percentage value is of the range between min and max, built-in method of phaser.

  • Author: Richard Davey

Usage

var result = Phaser.Math.Percent(value, min, max);
  • result: Percentage/t (0~1).
  • value : The value to determine the percentage of.