Skip to content

Instantly share code, notes, and snippets.

@runemadsen
Created November 3, 2016 15:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save runemadsen/b0e499d791d85b2e64443ed2604f5b55 to your computer and use it in GitHub Desktop.
Save runemadsen/b0e499d791d85b2e64443ed2604f5b55 to your computer and use it in GitHub Desktop.
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