add vite vanilla js repl example

This commit is contained in:
Felix Roos 2022-11-06 15:50:53 +01:00
parent 371af755df
commit 09045d5387
9 changed files with 1004 additions and 4 deletions

View file

@ -66,8 +66,11 @@ export class Cyclist {
this.clock.stop();
this.started = false;
}
setPattern(pat) {
setPattern(pat, autostart = false) {
this.pattern = pat;
if (autostart && !this.started) {
this.start();
}
}
setCps(cps = 1) {
this.cps = cps;