Skip to content

Best Java Library to create colorful User Interfaces for Linux Terminals.

License

Notifications You must be signed in to change notification settings

TECHOUS/rainbow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rainbow logo

Best Java library to create colorful User Interfaces for Linux terminals.

GitHub tag (latest by date) GitHub repo size GitHub issues GitHub pull requests GitHub forks GitHub stars

Rainbow is the best library to create colorful User Interfaces for Linux Terminals.

  • Simple and Easy to use: Rainbow is very simple and easy to use. You don't have to learn anything for using this library except java and terminal.

  • Declare once, use anytime: You have to declare a rainbow instance only once and then you can use any where in your project.

  • No need to learn hexadecimal color codes: For using rainbow you don't have to learn or find the color codes which you need for your project.

  • Minified Library: Rainbow has very less size as compared to other java libraries. Rainbow core is very small that's why it has GitHub code size in bytes only.

Projects using Rainbow

Supported OS

  • Linux (all distributions)
  • Mac

Supported Languages

GitHub top language

Installation

Rainbow has three methods from which you can use in your project.

For detailed installation guidelines according to your IDE read installation instructions here.

Examples

Here is the example which shows usage of rainbow library of java. For more read more tutorials here. For running this project read our documentation for getting started.

import org.techous.rainbow.*;

public class Main{
    public static void main(String[] args) {
        Rainbow rain = new Rainbow();
        System.out.println();
        System.out.println(rain.getFormatColorString("bold","y"," *****      *      *****  *    *  ****    ***   *   * ", true));
        System.out.println(rain.getFormatColorString("bold","y"," *   *     * *       *    **   *  *   *  *   *  *   * ", true));
        System.out.println(rain.getFormatColorString("bold","y"," *****    *****      *    * *  *  ****   *   *  * * * ", true));
        System.out.println(rain.getFormatColorString("bold","y"," *  *    *     *     *    *  * *  *   *  *   *  ** ** ", true));
        System.out.println(rain.getFormatColorString("bold","y"," *   *  *       *  *****  *   **  ****    ***   *   * ", true));
        System.out.println();
    }
}

Try on Rainbow PlayGround

Here is the output of the program when you run the sample code.

rainbow image

Documentation

For documentation take look at our Website here.

Contributing to rainbow GitHub contributors

For contributing read our contribution guidelines here.

LICENSE

rainbow uses GitHub

Copyright ©️ 2020 TechOUs