Class: Color
Constructors
constructor
• new Color()
Methods
RGBtoDecimal
▸ Static
RGBtoDecimal(color
): number
Parameters
Name | Type |
---|---|
color | RGB |
Returns
number
Defined in
packages/libcord/src/utils/Color.ts:17
decimalToHex
▸ Static
decimalToHex(color
): string
Parameters
Name | Type |
---|---|
color | number |
Returns
string
Defined in
packages/libcord/src/utils/Color.ts:4
decimalToRGB
▸ Static
decimalToRGB(color
): RGB
Parameters
Name | Type |
---|---|
color | number |
Returns
Defined in
packages/libcord/src/utils/Color.ts:13
hexToDecimal
▸ Static
hexToDecimal(color
): number
Parameters
Name | Type |
---|---|
color | string |
Returns
number