add vite vanilla js repl example
This commit is contained in:
parent
371af755df
commit
09045d5387
9 changed files with 1004 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue