allow pianoroll bg to be transparent

This commit is contained in:
Felix Roos 2022-03-21 19:46:45 +01:00
parent 72b963fb21
commit a02a48ac82

View File

@ -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;