Code (Text):
me.NitkaNikita.AdvancedColorAPI.api.types.AdvancedColor
The class describing the color. Stores the Color from java.awt
Static methods:
Also available static methods for converting colors
Code (Text):
String rgb2Hex(int r, int g, int b);
Color hex2Rgb(String hex);
Code (Text):
me.NitkaNikita.AdvancedColorAPI.api.types.GradientedText
A class describing the text with a gradient.
Code (Text):
TextComponent getFullText ();
Get gradiented text.
Static methods:
[DELETED. Use GradientTextBuilder class instead]
Code (Text):
GradientedText generateGradient(String text, ArrayList<AdvancedColor> colors, double X);
A method that generates a gradient for text.
text - string base
colors - gradient colors
X - color merging factor. Recommended 0.08
Code (Text):
AdvancedColor InterpolateColor(ArrayList<AdvancedColor> colors, double x, double c);
Get the color of a point on a gradient bar.
colors - gradient colors
x - point (0-1)
c - color merging factor. Recommended 0.08
Builders:
GradientTextBuilder
SolidTextBuilder