public
anonymous / gist:4345812
Created

  • Download Gist
gistfile1.js
JavaScript
1 2 3 4 5 6 7
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);

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.