allow pianoroll bg to be transparent
This commit is contained in:
parent
72b963fb21
commit
a02a48ac82
1 changed files with 1 additions and 0 deletions
|
|
@ -15,6 +15,7 @@ Pattern.prototype.pianoroll = function ({
|
||||||
this.draw(
|
this.draw(
|
||||||
(ctx, events, t) => {
|
(ctx, events, t) => {
|
||||||
ctx.fillStyle = background;
|
ctx.fillStyle = background;
|
||||||
|
ctx.clearRect(0, 0, w, h);
|
||||||
ctx.fillRect(0, 0, w, h);
|
ctx.fillRect(0, 0, w, h);
|
||||||
events.forEach((event) => {
|
events.forEach((event) => {
|
||||||
const isActive = event.whole.begin <= t && event.whole.end >= t;
|
const isActive = event.whole.begin <= t && event.whole.end >= t;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue