Created
February 19, 2016 19:51
-
-
Save runemadsen/a3b921499c5630eef388 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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