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
Free CRM Software With Something for Everyone Icon
Free CRM Software With Something for Everyone

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

Think CRM software is just about contact management? Think again. HubSpot CRM has free tools for everyone on your team, and it’s 100% free. Here’s how our free CRM solution makes your job easier.
Get free CRM
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