Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

increasing saturation and luminance variance as the colors progress

  • Loading branch information...
commit 8f4d1582826be5c9fcbd895f34bdc2f47c1d08dd 1 parent 1ac1588
@substack substack authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 index.js
View
6 index.js
@@ -33,8 +33,10 @@ var mr = module.exports = function () {
return mr.fromHSL(
angle,
- 75 + Math.random() * 25 * (1 - 1 / Math.sqrt(num)),
- 25 + Math.random() * 50
+ 100 - Math.min(80, 1 / Math.sqrt(1 + Math.floor(num / 12)))
+ * Math.random(),
+ 50 + Math.min(80, (Math.floor(num / 6) * 20))
+ * (Math.random() - 0.5)
);
};
};
Please sign in to comment.
Something went wrong with that request. Please try again.