ColorTool: {
RGBToHex(r, g, b): string;
getRandomColor(): string;
hexToRGB(hex): string;
} = ...
Type declaration
RGBToHex:function
- RGBToHex(r, g, b): string
Parameters
- r: number
- g: number
- b: number
Returns string
getRandomColor:function
- getRandomColor(): string
Returns string
hexToRGB:function
- hexToRGB(hex): string
Returns string
名称:常用工具函数集合 - 颜色类