ColorTool: {
    RGBToHex(r, g, b): string;
    getRandomColor(): string;
    hexToRGB(hex): string;
} = ...

名称:常用工具函数集合 - 颜色类


Type declaration

  • RGBToHex:function
    • Parameters

      • r: number
      • g: number
      • b: number

      Returns string

  • getRandomColor:function
    • Returns string

  • hexToRGB:function
    • Parameters

      • hex: string

      Returns string