Skip to content

Commit

Permalink
foo
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmerfield committed Nov 4, 2015
1 parent 6c4a5e2 commit 0636484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ <h3><span class=pull-W>W</span>hy does this ex­ist?</h3>
<code class=hljs><span class=hljs-string>'#'</span> + <span class=hljs-built_in>Math</span>.floor(<span class=hljs-built_in>Math</span>.random()*<span class=hljs-number>16777215</span>).toString(<span class=hljs-number>16</span>);</code>
<p>Un­for­tu­nately, this<span class=push-c></span> <span class=pull-c>c</span>ode nat­u­rally pro­duces murky greys, browns and greens.</p>

<p>ran­dom­Color gen­er­ates <em>at­trac­tive<span class=push-c></span> <span class=pull-c>c</span>ol­ors</em> by de­fault. More specif­i­cally, ran­dom­Color pro­duces bright<span class=push-c></span> <span class=pull-c>c</span>ol­ors<span class=push-w></span> <span class=pull-w>w</span>ith a rea­son­ably high sat­u­ra­tion.<span class=push-T></span> <span class=pull-T>T</span>his makes ran­dom­Color par­tic­u­larly use­ful for <em>data<span class=push-v></span> <span class=pull-v>v</span>i­su­al­iza­tions</em> and <em>gen­er­a­tive art</em>.</p>
<p>ran­dom­Color gen­er­ates <em>at­trac­tive<span class=push-c></span> <span class=pull-c>c</span>ol­ors</em> by de­fault. More specif­i­cally, ran­dom­Color pro­duces bright<span class=push-c></span> <span class=pull-c>c</span>ol­ors<span class=push-w></span> <span class=pull-w>w</span>ith a rea­son­ably high sat­u­ra­tion.<span class=push-T></span> <span class=pull-T>T</span>his makes ran­dom­Color use­ful for <em>data<span class=push-v></span> <span class=pull-v>v</span>i­su­al­iza­tions</em>, <em>gen­er­a­tive art</em> and <em>having fun</em>.</p>
<br>
<h3>Ex­am­ples</h3>
<p><span class=pull-O>O</span>nce you’ve in­cluded <a href=https://github.com/davidmerfield/randomColor alt="Attractive random color generator">ran­dom­Color.js</a> <span class=pull-o>o</span>n your page,<span class=push-c></span> <span class=pull-c>c</span>all­ing ran­dom­Color()<span class=push-w></span> <span class=pull-w>w</span>ill re­turn a ran­dom at­trac­tive<span class=push-c></span> <span class=pull-c>c</span>olor. Be­neath is the<span class=push-o></span> <span class=pull-o>o</span>ut­put<span class=push-o></span> <span class=pull-o>o</span>f ran­dom­Color<span class=push-c></span> <span class=pull-c>c</span>alled 54 times.</p>
Expand Down

0 comments on commit 0636484

Please sign in to comment.