UNPKG

color-theme-generator

Version:

Generates random color themes that are based in color theory.

21 lines (20 loc) 798 B
import { MaxMinObject } from './MaxMinObject.js'; export declare class NumberGenerator { #private; constructor(); /** * Generates a random number between the given arguments. * * @param limits - An object containing the properties max and min. * @returns The newly generated number. */ generateRandomNumber(limits: MaxMinObject): number; /** * Varies a number by generating a new random number that is within +- 10 from the argument. * If number was 40, the newly generated number would be between 30 and 50. * * @param refrenceNumber - The number that is used a refrence for the new number. * @returns The newly generated number that is inside the deviation. */ adjustNumberWithin10(refrenceNumber: number): number; }