Skip to content

Commit 648a0bb

Browse files
authored
Update README.md
1 parent 74e7a9b commit 648a0bb

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

README.md

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,12 @@ This library simplifies color management while allowing developers to build beau
2323
1. **Add the JAR to your project**: (Instructions to add it as a dependency once you release it, or users can manually download it)
2424
2. **Build the project**: Make sure your project is built with a compatible version of Java.
2525

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
4227

4328
- **Solid Color Example:**
4429

4530
```java
46-
String text = "<SOLID:#FFD700>This is yellow text</SOLID>";
31+
String text = "<SOLID:#FFD700>This is yellow text";
4732
String processed = ColorUtils.process(text);
4833
```
4934

@@ -65,8 +50,6 @@ String processedLegacy = ColorUtils.process(legacyText);
6550

6651
- `process(String text)`: Process a single string for color codes, gradients, and formatting.
6752
- `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.
7053

7154
## 📦 Contributing
7255

@@ -80,7 +63,7 @@ Make sure to follow the coding standards and include tests where appropriate.
8063

8164
## 📝 License
8265

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.
8467

8568
## 📢 Acknowledgments
8669

0 commit comments

Comments
 (0)