Skip to content

Instantly share code, notes, and snippets.

@thejefflarson
Created January 4, 2012 04:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thejefflarson/1558470 to your computer and use it in GitHub Desktop.
Save thejefflarson/1558470 to your computer and use it in GitHub Desktop.
var color = function(){
var rcolor = function (ceil) { return Math.random() * ceil | 0; };
var bits = [rcolor(256), rcolor(182), rcolor(230), "0.6"];
return "rgba(" + bits.join(',') + ")";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment