mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 14:26:58 -04:00
allow pianoroll bg to be transparent
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user