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

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
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