https://github.com/butterroach/terjol
terjol
https://github.com/butterroach/terjol
ansi ansi-color color coloring java
Last synced: 10 months ago
JSON representation
terjol
- Host: GitHub
- URL: https://github.com/butterroach/terjol
- Owner: Butterroach
- License: mit
- Created: 2024-05-02T08:57:22.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-10T21:10:38.000Z (10 months ago)
- Last Synced: 2025-03-10T22:22:38.070Z (10 months ago)
- Topics: ansi, ansi-color, color, coloring, java
- Language: Java
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# terjol
terjol
***
TerJol is a port of [TerCol](https://github.com/Butterroach/tercol) for Java.
THIS IS MY 3RD EVER JAVA THING PLEASE SPARE ME
## Code example
```java
import terjol.terjol;
public class Main {
public static void main(String[] args) {
System.out.println(terjol.red("Red text"));
System.out.println(terjol.blue("Blue text"));
System.out.println(terjol.rgb(255, 215, 0, "Gold text using RGB"));
System.out.println(terjol.dec(0xFFD700, "Gold text using HEX"));
System.out.println(terjol.hsv(51, 100, 100, "Gold text using HSV"));
System.out.println(terjol.rainbowtext("Rainbow text"));
}
}
```
## How to use
1. Get the terjol.java file in src/terjol.
2. Run `javac terjol.java`.
3. Put the new `terjol.class` file in a directory named `terjol` in the same directory as your Java program.
4. You should be able to import it in your code using `import terjol.terjol` now!
## Differences:
- No aliases at all
- No `hexa`/`bghexa` function, but there is a `dec`/`bgdec` function that only takes integers (you can use `0x` followed by your hex code without any quotes to use HEX codes as shown in the code example)
- `bgrainbowtext` function that doesn't exist in the original TerCol
If it doesn't work then try using JDK 21. If that doesn't work I'm probably just stupid (open an issue or fix it for me and open a PR :3 :3 :3 pls fix it for me i am so clueless).