@@ -23,27 +23,12 @@ This library simplifies color management while allowing developers to build beau
23
23
1 . ** Add the JAR to your project** : (Instructions to add it as a dependency once you release it, or users can manually download it)
24
24
2 . ** Build the project** : Make sure your project is built with a compatible version of Java.
25
25
26
- ### Usage
27
-
28
- Here's how you can use ** MatrixColorAPI** in your project:
29
-
30
- ``` java
31
- import net.matrixcreations.libraries.ColorUtils ;
32
-
33
- public class Main {
34
- public static void main (String [] args ) {
35
- String formattedText = ColorUtils . process(" &#FF5733Hello, <GRADIENT:#FFD700>world</GRADIENT:#FF0000>!" );
36
- System . out. println(formattedText); // Log or send the message with colors
37
- }
38
- }
39
- ```
40
-
41
- ### Examples
26
+ ### Example Usages
42
27
43
28
- ** Solid Color Example:**
44
29
45
30
``` java
46
- String text = " <SOLID:#FFD700>This is yellow text</SOLID> " ;
31
+ String text = " <SOLID:#FFD700>This is yellow text" ;
47
32
String processed = ColorUtils . process(text);
48
33
```
49
34
@@ -65,8 +50,6 @@ String processedLegacy = ColorUtils.process(legacyText);
65
50
66
51
- ` process(String text) ` : Process a single string for color codes, gradients, and formatting.
67
52
- ` process(List<String> texts) ` : Process a list of strings for color codes and formatting.
68
- - ` applyGradient(String text, String startColor, String endColor) ` : Apply a gradient to a string from start to end color.
69
- - ` applySolidColor(String text, String hexColor) ` : Apply a solid color to a string.
70
53
71
54
## 📦 Contributing
72
55
@@ -80,7 +63,7 @@ Make sure to follow the coding standards and include tests where appropriate.
80
63
81
64
## 📝 License
82
65
83
- This project is licensed under the ** MIT License** . See the [ LICENSE] ( ./LICENSE ) file for details.
66
+ This project is licensed under the ** Apache 2.0 License** . See the [ LICENSE] ( ./LICENSE ) file for details.
84
67
85
68
## 📢 Acknowledgments
86
69
0 commit comments