Skip to content

Instantly share code, notes, and snippets.

@runemadsen
Created February 19, 2016 19:51
Show Gist options
  • Save runemadsen/a3b921499c5630eef388 to your computer and use it in GitHub Desktop.
Save runemadsen/a3b921499c5630eef388 to your computer and use it in GitHub Desktop.
var r = new Rune({
container: "#canvas",
width: 800,
height: 600,
debug: true
});
var x = 0;
var y = 0;
var h = 300;
var right = r.group(400, 100);
for(var i = 0; i < 20; i++) {
r.line(x, y, x, y + h, right)
.strokeWidth(5)
x += 20 - i;
y += (20 - i) / 4;
h -= (20 - i) / 2;
}
r.draw();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment