UNPKG

@gpa-gemstone/helper-functions

Version:
13 lines (12 loc) 540 B
/** * This function returns a semi-random color with a spacing value between subseqent calls. * adapted from https://martin.ankerl.com/2009/12/09/how-to-create-random-colors-programmatically/. * Assumes s, and v are contained in the set [0, 1] and * returns color in hex code. * * @param Number s The saturation (within [0, 1]) * @param Number v The value (within [0, 1]) * @returns String Spaced color in hex code. */ declare function SpacedColor(saturation: number, value: number): string; export { SpacedColor };