Class ColorUtils
java.lang.Object
dev.ua.theroer.magicutils.utils.ColorUtils
Utility methods for color calculations and MiniMessage helper conversions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringadjustBrightness(String hex, float factor) Adjust color brightness by factor.static StringAdjust color hue by degrees.static StringcreateGradientTag(String[] colors) Create gradient tag from colors array.static String[]Get primary and secondary colors derived from plugin name.static StringlegacyToMiniMessage(String input) Converts legacy color codes to MiniMessage codes.static StringConverts ampersand color codes to legacy section sign codes.
-
Method Details
-
adjustBrightness
-
adjustHue
-
getMainAndSecondaryColor
-
createGradientTag
-
legacyToMiniMessage
-
toLegacy
-