6863bb1dc1926a78ea1d62da0b454ef7abadda0b600816676d96d8a15716dc33fa4d23884fe8cbe4a8a5e613c182e1807d633c8d93099bead3406a8bcbd8a5 470 B

1234567891011121314
  1. import { TinyColor } from './index.js';
  2. export interface RatioInput {
  3. r: number | string;
  4. g: number | string;
  5. b: number | string;
  6. a?: number | string;
  7. }
  8. /**
  9. * If input is an object, force 1 into "1.0" to handle ratios properly
  10. * String input requires "1.0" as input, so 1 will be treated as 1
  11. */
  12. export declare function fromRatio(ratio: RatioInput, opts?: any): TinyColor;
  13. /** old random function */
  14. export declare function legacyRandom(): TinyColor;