Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created September 1, 2013 16:26
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 tmcw/6405522 to your computer and use it in GitHub Desktop.
Save tmcw/6405522 to your computer and use it in GitHub Desktop.
turtle(function(t) {
var fns = [];
[200, 300, 100].forEach(function(a) {
[0, -90, 180, 90, 180].forEach(function(off) {
fns.push(function(t) { return (Math.sin((t/a)) * 180) + off; });
});
});
return fns;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment