Skip to content

Latest commit

 

History

History
115 lines (78 loc) · 1.63 KB

readme.adoc

File metadata and controls

115 lines (78 loc) · 1.63 KB

crayon

Install

download
repositories {
    jcenter()
}

dependencies {
    compile "com.importre:crayon:$crayon_version"
}

Examples

Java

String title = "Crayon";
System.out.println(Crayon.red(title));

Kotlin

val title = "Crayon"
println(title.red())

Execution

$ ./gradlew -q example:run

Solarized Dracula

dark

Solarized Light

light

Decorator

  • bold()

  • italic()

  • underline()

  • reversed()

Color

Default

  • black()

  • blue()

  • cyan()

  • green()

  • magenta()

  • red()

  • white()

  • yellow()

Bright (Bold)

  • brightBlack()

  • brightBlue()

  • brightCyan()

  • brightGreen()

  • brightMagenta()

  • brightRed()

  • brightWhite()

Background Color

Default

  • bgBlack()

  • bgBlue()

  • bgCyan()

  • bgGreen()

  • bgMagenta()

  • bgRed()

  • bgWhite()

  • bgYellow()

Bright (Bold)

  • bgBrightBlack()

  • bgBrightBlue()

  • bgBrightCyan()

  • bgBrightGreen()

  • bgBrightMagenta()

  • bgBrightRed()

  • bgBrightWhite()

  • bgBrightYellow()

License

MIT © Jaewe Heo