approaching proper draw logic in microrepl
This commit is contained in:
parent
fc034830d0
commit
7fcd9d8a83
3 changed files with 58 additions and 26 deletions
|
|
@ -102,7 +102,8 @@ export class StrudelMirror {
|
|||
this.onDraw?.(haps, time, currentFrame, this.painters);
|
||||
}, drawTime);
|
||||
|
||||
// this approach might not work with multiple repls on screen..
|
||||
// this approach does not work with multiple repls on screen
|
||||
// TODO: refactor onPaint usages + find fix, maybe remove painters here?
|
||||
Pattern.prototype.onPaint = function (onPaint) {
|
||||
self.painters.push(onPaint);
|
||||
return this;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue