Package org.kingdoms.utils
Class ColorUtils
java.lang.Object
org.kingdoms.utils.ColorUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic float[]static intstatic intActually gets the RGB without the alpha component.static List<MessagePiece>gradient(List<MessagePiece> pieces, Color from, Color to) https://stackoverflow.com/questions/21835739/smooth-color-transition-algorithmstatic Colorstatic org.bukkit.ChatColorhexColorToLegacy(Color color) static ColorlegacyColorToAwt(org.bukkit.ChatColor color) static intlegacyColorToHex(org.bukkit.ChatColor color) static Colorstatic ColorparseColor(String str) static Colorstatic StringshortHexToLongHex(String shortHex) static intstatic StringtoHexString(int colorHex) static StringtoHexString(Color color) static String
-
Constructor Details
-
ColorUtils
public ColorUtils()
-
-
Method Details
-
hex
-
toString
-
getRGB
Actually gets the RGB without the alpha component. -
parseColor
-
shortHexToLongHex
-
toHex
-
getHue
-
getHSB
-
toHexString
-
toHexString
-
legacyColorToHex
public static int legacyColorToHex(org.bukkit.ChatColor color) -
legacyColorToAwt
-
hexColorToLegacy
-
rgb
-
gradient
https://stackoverflow.com/questions/21835739/smooth-color-transition-algorithm -
mixColors
-