Skip to content

importre/crayon

Repository files navigation

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