Super simple terminal output colorizing for Scala
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.


Super simple terminal output colorizing for Scala. Using it you can colorize any string for terminal output and was tested on Linux and OSX, not on windows and there it probably sux ;-)


Scala Rainbow Demo


It's published to sonatype and synced with Maven Central, so all you need to do is:

for sbt:

val scalaRainbow = "pl.project13.scala" %% "rainbow" % "0.2"

libraryDependencies += scalaRainbow

for maven:

  <artifactId>rainbow_2.10.4</artifactId> <!-- your scala version here -->

The library is published for Scala: 2.9.1, 2.9.2 (0.1) and 2.10.4, 2.11.x (0.2).


Using rainbow is as simple as it gets:

import Rainbow._

println { "Warning, critical error!".red }

You can us it as a mixin with Rainbow or import Rainbow._ or import the package object import pl.project13.scala.rainbow._. For a list of available colors take a look at Rainbow.scala.

Yay, feedback!

btw I really like your lib!
It reminds me of "node-colors" for node.js


Public Domain - Just use it however you see fit.