Giter Club home page Giter Club logo

color_cli's Introduction

ColorCLI

A simple command line app for converting color values.

Usage

ColorCLI can convert any 6 character HEX, octal RGBa and decimal RGBa to one another.

Examples

Converting HEX values:

› color FEFAFD
HEX:          #FEFAFD
RGBa Octal:   [254, 250, 253]
RGBa Decimal: [0.996078431372549, 0.9803921568627451, 0.9921568627450981]

Converting octal RGB values:

› color 254, 250, 253
HEX:          #FEFAFD
RGBa Octal:   [254, 250, 253, 1.0]
RGBa Decimal: [0.996078431372549, 0.9803921568627451, 0.9921568627450981, 1.0]

Converting decimal RGB values:

› color .5, .532, .53
HEX:          #7F8787
RGBa Octal:   [127, 135, 135, 1.0]
RGBa Decimal: [0.4980392156862745, 0.5294117647058824, 0.5294117647058824, 1.0]

Adding in some alpha (this won't affect the HEX string):

› color .5, .532, .53, .9
HEX:          #7F8787
RGBa Octal:   [127, 135, 135, 0.9]
RGBa Decimal: [0.4980392156862745, 0.5294117647058824, 0.5294117647058824, 0.9]

Specifying an output format:

› color 255, 255, 255 -o hex
#FFFFFF

color_cli's People

Contributors

kohidave avatar

Watchers

 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.