Sueta

⭐ AdvancedColorAPI ⭐ Gradients | Animations | Placeholders |

1.6.3

Color Gradient Placeholders

·Plugin

ADVANCED COLOR API WILL NOT BE UPDATED

A NEW VERSION OF THE PLUGIN IS DEVELOPED.
AdvancedColor2 will be posted on this page.


AdvancedColor2 is the same plugin but with a new codebase. It is planned to keep and transfer most of the functionality from the AdvancedColorAPI.

You can follow the development of AdvancedColor2 on the Discord server or GitHub repository

https://discord.gg/9kG9vBfuEc

head.png

Text.png
Plugin WIKI

Sreenshots

upload_2021-6-3_20-32-50.png

Placeholders

${nick}
allows you to substitute the player's nickname in the placeholder

%ac_gradient_ff0000,00ff00,0000ff_0.8_gradiented text!%
ff0000,00ff00,0000ff
- colors
0.8 - the degree of color blur
gradiented text! - the text to which the gradient will be applied

%
ac_color_464745_one color%

one color - fill with one color

Animations
%ac_rainbow_rainbow text%

rainbow text - transfusion of text with rainbow colors

%ac_an_move_0.8_1_ff0000,00ff00,0000ff_moving gradient!%
0.1 - the degree of color blur
1 - speed animation (recomended: 1)
ff0000,00ff00,0000ff - colors
rainbow text - text for gradient

API usage (May change)
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

String rgb2Hex(int r, int g, int b);
Color hex2Rgb(String hex);
me.NitkaNikita.AdvancedColorAPI.api.types.GradientedText

A class describing the text with a gradient.

TextComponent getFullText ();

Get gradiented text.

Static methods:
[DELETED. Use GradientTextBuilder class instead]

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

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

DS.png
Visit my Discord server!

Similar projects

Plugin →