ziggy42 / kolor

A library to print colored strings, with Kotlin.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kolor

Java CI Download
A library to print colored strings, with Kotlin.

Screenshot

Example

Foreground:

println("We all live in a yellow submarine".yellow())
// Or
println(Kolor.foreground("We all live in a yellow submarine", Color.YELLOW))

Background:

println("I'm blue da ba dee da ba daa".blueBackground())
// Or
println(Kolor.background("I'm blue da ba dee da ba daa", Color.BLUE))

Usage

Add jcenter:

repositories {
    jcenter()
}

Add dependency:

dependencies {
    implementation "com.andreapivetta.kolor:kolor:1.0.0"
}

About

A library to print colored strings, with Kotlin.

License:Apache License 2.0


Languages

Language:Kotlin 100.0%