UNPKG

gl2d

Version:

2D graphics package for WebGL

15 lines 494 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ArgbRegex = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/; function pad(str) { return (str.length == 1) ? '0' + str : str; } exports.pad = pad; /** * Returns a random integer between min (inclusive) and max (inclusive) */ function randomInt(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; } exports.randomInt = randomInt; //# sourceMappingURL=util.js.map