mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 13:48:34 +00:00
allow pianoroll bg to be transparent
This commit is contained in:
parent
72b963fb21
commit
a02a48ac82
@ -15,6 +15,7 @@ Pattern.prototype.pianoroll = function ({
|
||||
this.draw(
|
||||
(ctx, events, t) => {
|
||||
ctx.fillStyle = background;
|
||||
ctx.clearRect(0, 0, w, h);
|
||||
ctx.fillRect(0, 0, w, h);
|
||||
events.forEach((event) => {
|
||||
const isActive = event.whole.begin <= t && event.whole.end >= t;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user