Pad
Introduction¶
Takes the given string and pads it out, to the length required, built-in method of phaser.
- Author: Richard Davey
Usage¶
var result = Phaser.Utils.String.Pad(str, len, pad, dir);
str: String, or number.len: Length or result string.pad: The string to pad it out.dir:1: Left2: Right3: Both