Skip to content

Latest commit

 

History

History
42 lines (36 loc) · 1.17 KB

README.md

File metadata and controls

42 lines (36 loc) · 1.17 KB

IridiumColorAPI

<repository>
    <id>iridiumdevelopment</id>
    <url>https://nexus.iridiumdevelopment.net/repository/maven-releases/</url>
</repository>
<dependency>
    <groupId>com.iridium</groupId>
    <artifactId>IridiumColorAPI</artifactId>
    <version>LATEST</version>
</dependency>

Usage

To add a gradient simply use the tags

IridiumColorAPI.process("<GRADIENT:2C08BA>Cool string with a gradient</GRADIENT:028A97>");

Gradient Text

The number after the rainbow represents the saturation

IridiumColorAPI.process("<RAINBOW1>THIS IS A REALLY COOL Rainbow</RAINBOW>");

Rainbow

IridiumColorAPI.process("<RAINBOW100>THIS IS A REALLY COOL Rainbow</RAINBOW>");

Rainbow

IridiumColorAPI.process("<SOLID:FF0080>Cool RGB SUPPORT");

RGB Text

If your server version is pre 1.16 it will map the color to the nearest supported value(This also works with gradient) In the example above, it will map to &5 as this is the closest

Legacy RGB