Skip to content

Instantly share code, notes, and snippets.

@leostera
Created November 29, 2020 11:59
Show Gist options
  • Select an option

  • Save leostera/d6cc8627f4c90253557ce54af2d82160 to your computer and use it in GitHub Desktop.

Select an option

Save leostera/d6cc8627f4c90253557ce54af2d82160 to your computer and use it in GitHub Desktop.
import load_lam from "./fib.js";
import run_js from "./fib_in_js.js";
document.onclick = () => {
run_js().then((_) => load_lam().then(lam => {
const run = () => {
lam.step();
requestAnimationFrame(run);
}
run();
}));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment