Skip to content

Instantly share code, notes, and snippets.

@andypearson
Created October 9, 2011 09:44
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 andypearson/1273505 to your computer and use it in GitHub Desktop.
Save andypearson/1273505 to your computer and use it in GitHub Desktop.
Abstract.build('#multi .canvas', 300, 200, function(canvas) {
colours = ['red', 'blue', 'yellow', 'black', 'white'];
canvas.origin({ x : [0, '100%'], y : [0, '100%'] });
canvas.background(colours);
canvas.repeat([5, 25], function() {
canvas.rectangle({ size : [10, 100], fill : colours });
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment