# Color [](https://godoc.org/github.com/fatih/color) [](https://travis-ci.org/fatih/color)
Color lets you use colorized outputs in terms of [ANSI Escape
Codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors) in Go (Golang). It
has support for Windows too! The API can be used in several ways, pick one that
suits you.

## Install
```bash
go get github.com/fatih/color
```
Note that the `vendor` folder is here for stability. Remove the folder if you
already have the dependencies in your GOPATH.
## Examples
### Standard colors
```go
// Print with default helper functions
color.Cyan("Prints text in cyan.")
// A newline will be appended automatically
color.Blue("Prints %s in blue.","text")
// These are using the default foreground colors
color.Red("We have red")
color.Magenta("And many others ..")
```
### Mix and reuse colors
```go
// Create a new color object
c:=color.New(color.FgCyan).Add(color.Underline)
c.Println("Prints cyan text with an underline.")
// Or just add them to New()
d:=color.New(color.FgCyan,color.Bold)
d.Printf("This prints bold cyan %s\n","too!.")
// Mix up foreground and background colors, create new mixes!
red:=color.New(color.FgRed)
boldRed:=red.Add(color.Bold)
boldRed.Println("This will print text in bold red.")
whiteBackground:=red.Add(color.BgWhite)
whiteBackground.Println("Red text with white background.")