Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skn437/skn-java-color
A Simple Color Library For Java
https://github.com/skn437/skn-java-color
color gradle java library maven
Last synced: about 2 months ago
JSON representation
A Simple Color Library For Java
- Host: GitHub
- URL: https://github.com/skn437/skn-java-color
- Owner: skn437
- License: apache-2.0
- Created: 2024-03-05T19:11:03.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-11-05T09:07:57.000Z (2 months ago)
- Last Synced: 2024-11-05T10:20:05.204Z (2 months ago)
- Topics: color, gradle, java, library, maven
- Language: Java
- Homepage: https://javadoc.io/doc/best.skn/skn-java-color/latest/index.html
- Size: 133 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SKN Java Color Library
> Java
[![Maven Central](https://img.shields.io/maven-central/v/best.skn/skn-java-color)](https://central.sonatype.com/artifact/best.skn/skn-java-color) [![Javadoc](https://javadoc.io/badge2/best.skn/skn-java-color/1.5.0/javadoc.svg)](https://javadoc.io/doc/best.skn/skn-java-color/1.5.0) [![Apache License 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
## **_JavaDocs:_**
### Read the Javadoc for the main API: [Color API](https://javadoc.io/doc/best.skn/skn-java-color/latest/best/skn/utils/color/Color.html)
## **_Introduction:_**
### This is a simple Java Library for colored text output in console
### I made this library so that I can use it in all of my java projects without writing the same codes over and over again
### The main API Class of this library is `Color` which holds 16 static methods for 8 different colors
## **_Details:_**
### **`Color` Class:**
- It doesn't need to be instantiated
- It has 16 static methods for 8 different colors
- The colors are:
- Black
- Red
- Green
- Yellow
- Blue
- Purple
- Cyan
- White
## **_Use Case:_**
- Java
- Java Spring Boot
## **_Requirements:_**
- 💀 Minimum Java Version: `21`
## **_Usage:_**
### For `Maven`, inside `dependencies` tag of `pom.xml`, copy the following
> ```xml
>
> best.skn
> skn-java-color
> 1.5.0
>
> ```### For `Gradle`, inside `dependencies` block of `build.gradle.kts`, copy the following
> ```kotlin
> implementation("best.skn:skn-java-color:1.5.0")
> ```### Inside your Java Code, import the package like this
> ```java
> import best.skn.utils.color.Color;
> ```### Use the package like this
> ```java
> public class Cat {
> public void createSound() {
> System.out.println(Color.blue("Meow!"));
> }
> }
> ```
## **_Dedicated To:_**
- 👩🎨`Prodipta Das Logno` & 🧛♀️`Atoshi Sarker Prithula`: The two most special ladies of my life. My best wishes will always be with you two. May you two always be happy.
- 💯`My Parents`: The greatest treasures of my life ever.
## **_License:_**
Copyright (C) 2024 SKN Shukhan
Licensed under the Apache License, Version 2.0