Created
November 3, 2016 15:58
-
-
Save runemadsen/b0e499d791d85b2e64443ed2604f5b55 to your computer and use it in GitHub Desktop.
This file contains 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 | |
}); | |
function drawTriangle(x, y, s) { | |
r.triangle(x, y, x+(s/2), y+s, x-(s/2), y+s) | |
} | |
for(var i = 0; i < 10; i++) { | |
drawTriangle(i*30, 300, 30) | |
} | |
r.play(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment