Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Just give me some colors already!

tree: 5a0f9079a9

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 example
Octocat-spinner-32 test
Octocat-spinner-32 README.markdown
Octocat-spinner-32 index.js
Octocat-spinner-32 package.json

Mr. Color

I just want some colors, you know?

This module gives you some colors which are all different but they get less different the more colors you load.

The hue is deterministic but the saturation and luminosity vary increasingly randomly the more colors are generated.


var mr = require('mrcolor');

var next = mr();

Call next() repeatedly to get more colors.


Generate n colors as an array.

color objects

Color objects have these methods:

  • rgb()
  • hsl()
  • hsv()
  • cmyk()
  • xyz()

The return values are arrays with each of the color parameters. See color-convert for more info.

Something went wrong with that request. Please try again.