UNPKG

@haiku/player

Version:

Haiku Player is a JavaScript library for building user interfaces

11 lines 352 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var internal_1 = require("../internal"); exports.frames = function (n) { var q = 1 / (n - 1); return function (x) { var o = internal_1.floor(x * n) * q; return x >= 0 && o < 0 ? 0 : x <= 1 && o > 1 ? 1 : o; }; }; //# sourceMappingURL=frames.js.map