Giter Club home page Giter Club logo

erlang-color's Introduction

It's me, Julián Duque and I forked this twitter card from my friend, Tierney!

Usage

Via npx:

npx julianduque

Not including how to use it globally because I'm not sure why you'd want this as a global command. That'd be creepy.

erlang-color's People

Contributors

edkolev avatar eproxus avatar essen avatar julianduque avatar oubiwann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

erlang-color's Issues

24 bit colors

API for 'true 24-bit colors' is added here. @julianduque I wanted to get our opinion on the API before pushing.

The addition is color:true/2 (and color:on_true/2) which can be used like so, to print black:

color:true("FFFFFF", "...")
...
color:true([255,255,255], "...")

Do you think true is OK for the function name? color:hex/2 is another option which comes to mind. I decided to go with true mainly because the wikipedia article refers to 24-bit color as 'true'.

screen shot 2014-02-13 at 9 53 49 am

Thanks!

RGB colors

I've added support for RGB colors (xterm256 colors) here.
However, I'm not sure I've chosen the proper API color:rgb([R, G, B], "text"), and color:on_rgb([R, G, B], "text") for background. Example:

io:format("Hello, this is the ~s color~n", [ color:rgb([3,0,0], "red") ]).

Would you be interested in merging this?
Do you think the API can be improved?

screen shot 2014-02-08 at 10 09 13 am

Background colors

Would you be interested in adding support for background colors? I have a working version in https://github.com/edkolev/erlang-color

As I haven't designed any Erlang APIs, I'm not sure if the chosen functions names color:on_X (where X is red/black/..) are appropriate.

Here's a screenshot showing how the new functions can be used:
screen shot 2014-02-02 at 6 47 06 pm

Would you be interested in merging this?

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.