Giter Club home page Giter Club logo

color's Introduction

color

ansi color utility

useage

package main

import (
	"fmt"
	. "github.com/Jxck/color"
)

func main() {
	fmt.Println("name    code  (ansi name)")
	fmt.Println("-------------------------")
	fmt.Println(Black("Black   0;30m (black)"))
	fmt.Println(Red("Red     0;31m (red)"))
	fmt.Println(Green("Green   0;32m (green)"))
	fmt.Println(Brown("Brown   0;33m (brown)"))
	fmt.Println(Navy("Navy    0;34m (blue)"))
	fmt.Println(Purple("Purple  0;35m (purple)"))
	fmt.Println(Cyan("Cyan    0;36m (cyan)"))
	fmt.Println(Gray("Gray    0;37m (light Gray)"))
	fmt.Println(Dim("Dim     1;30m (dark Gray)"))
	fmt.Println(Orange("Orange  1;31m (light Red)"))
	fmt.Println(Lime("Lime    1;32m (light Green)"))
	fmt.Println(Yellow("Yellow  1;33m (yellow)"))
	fmt.Println(Blue("Blue    1;34m (light Blue)"))
	fmt.Println(Pink("Pink    1;35m (light Purple)"))
	fmt.Println(Aqua("Aqua    1;36m (light Cyan)"))
	fmt.Println(White("White   1;37m (white)"))
}

color list

covers 30~37 and bold of them. but changed name for easy and short.

Black   0;30m (black)
Red     0;31m (red)
Green   0;32m (green)
Brown   0;33m (brown)
Navy    0;34m (blue)
Purple  0;35m (purple)
Cyan    0;36m (cyan)
Gray    0;37m (light Gray)
Dim     1;30m (dark Gray)
Orange  1;31m (light Red)
Lime    1;32m (light Green)
Yellow  1;33m (yellow)
Blue    1;34m (light Blue)
Pink    1;35m (light Purple)
Aqua    1;36m (light Cyan)
White   1;37m (white)

License

The MIT License (MIT) Copyright (c) 2013 Jxck

color's People

Contributors

jxck avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.