Resolve a color from a string, number, RGB array or color preset.
Inspired by discord.js'
color resolver.
Returns
The resolved color.
Example
// Resolve the color with a hex color. resolveColor(0xFFFFFF); resolveColor('#FFFFFF'); // Resolve the color with a color preset. resolveColor('White'); // Resolve the color with RGB values. resolveColor([255, 255, 255]);
Resolve a color from a string, number, RGB array or color preset. Inspired by discord.js' color resolver.
Returns
The resolved color.
Example