"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.randomColor = randomColor;
var _color = _interopRequireDefault(require("../../compiled/color"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const ratio = 0.618033988749895;
let hue = Math.random();
function randomColor(saturation = 0.5, value = 0.95) {
  hue += ratio;
  hue %= 1;
  return (0, _color.default)({
    h: hue * 360,
    s: saturation * 100,
    v: value * 100
  });
}