A color gen­er­a­tor for JavaScript. There are lots of clever one-lin­ers for gen­er­at­ing ran­dom col­ors. Unfortunately, this code nat­u­rally pro­duces murky greys, browns and greens. ran­dom­Color gen­er­ates at­trac­tive col­ors by de­fault. More specif­i­cally, ran­dom­Color pro­duces bright col­ors with a rea­son­ably high sat­u­ra­tion. This makes ran­dom­Color par­tic­u­larly use­ful for data vi­su­al­iza­tions and gen­er­a­tive art. Once you’ve in­cluded ran­dom­Color.js on your page, call­ing ran­dom­Color() will re­turn a ran­dom at­trac­tive color. Beneath is the out­put of ran­dom­Color called 54 times. You can also pass an op­tions ob­ject to ran­dom­Color. This al­lows you to spec­ify the hue, lu­mi­nos­ity and the num­ber of col­ors to gen­er­ate.

Features

  • See the demo for an explanation and some samples
  • To use randomColor in the browser, download the latest minified version of randomColor
  • To use randomColor on the server with node.js, install randomColor from npm
  • You can pass an options object to influence the type of color it produces
  • Control the hue of the generated color
  • Control the luminosity of the generated color

Project Samples

Project Activity

See All Activity >

License

Creative Commons Attribution License

Follow Random Color

Random Color Web Site

You Might Also Like
Top-Rated Free CRM Software Icon
Top-Rated Free CRM Software

216,000+ customers in over 135 countries grow their businesses with HubSpot

HubSpot is an AI-powered customer platform with all the software, integrations, and resources you need to connect your marketing, sales, and customer service. HubSpot's connected platform enables you to grow your business faster by focusing on what matters most: your customers.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Random Color!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript User Interface (UI) Software, JavaScript Design Software, JavaScript PostScript Software

Registered

2021-09-28