UNPKG

@rickosborne/rebound

Version:

Rick Osborne's utilities for working with bounded numbers

16 lines (15 loc) 454 B
var __defProp = Object.defineProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); import { int255 } from "./int255.mjs"; import { real01 } from "./real01.mjs"; function int255From01(value) { if (value == null) { return void 0; } return int255.range.scaleValueFrom(value, real01.range); } __name(int255From01, "int255From01"); export { int255From01 }; //# sourceMappingURL=int255-from-01.mjs.map