Skip to content

Instantly share code, notes, and snippets.

Created December 20, 2012 15:09
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 anonymous/4345812 to your computer and use it in GitHub Desktop.
Save anonymous/4345812 to your computer and use it in GitHub Desktop.
var mylib = function(style) {
style.define('randomColor', function () {
var col = rgb(Math.floor(Math.random() * 256), Math.floor(Math.random() * 256), Math.floor(Math.random() * 256));
return col;
});
};
return stylus(str).use(mylib);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment