Giter Site home page Giter Site logo

random-color-generator's Introduction

RANDOM COLOR GENERATOR

Node.js app that returns a random color in the command app

  • When a user enters node index.js block of 31x9 # characters colored with a random color gets generated.

  • The app also accepts for a hue and/or luminosity as command line arguments and then generate random colors that match those choices.

Usage

node index.js

Valid arguments for hue:

  • red, orange, yellow, bue, violet, green, cyan

Valid arguments for luminosity:

  • dark, light

Usage examples:

node index.js: Returns a block of 31x9 # characters with a random color.

node index.js blue light: Returns a block of 31x9 # characters with a random color of blue hue and light luminosity.


TO-DOs

  • Print block of 31x9 # characters when running node index.js
  • Make that in the rows 4, 5 and 6 of the block there are blank spaces instead of '#' between the columns 6 and 25
  • Generate random hex color
  • Make hex code appear in the center of row 5
  • Make text color equal to the randomized hexcode

  • Make the program accept a argument (red, orange, yellow, blue, violet, green, cyan) or no argument; otherwise print "invalid argument"
  • Pair the hue arguments to a range of matching colors
  • Make the program accept a second argument (dark, light)
  • Make the program output luminosity equivalent to said argument

Wishlist

  • [] Add hue argument options for white, gray and black.mmm

random-color-generator's People

Contributors

alexaldearroyo avatar

Watchers

 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.