ChatColorConverter

public class ChatColorConverter

Utility class for converting color codes in strings. Supports: - Legacy &codes (&a, &b, &c, etc.) - Hex colors: &#RRGGBB or <#RRGGBB> - Gradients: text or text - Multi-color gradients: text

Functions

Link copied to clipboard
public static String applyGradient(String text, Array<Color> colors)
Applies a gradient to text using multiple colors.
Link copied to clipboard
public static String applyRainbow(String text, float saturation)
Applies rainbow colors to text.
Link copied to clipboard
public static String convert(String string)
Converts a string with color codes to a colored string.
public static List<String> convert(List<? extends Object> list)
Converts a list of strings with color codes.