mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 13:48:40 +00:00
fix: flip scope in y direction
This commit is contained in:
parent
4761e25fe1
commit
a57c2b9fe5
@ -25,7 +25,7 @@ export function drawTimeScope(
|
|||||||
|
|
||||||
for (let i = triggerIndex; i < bufferSize; i++) {
|
for (let i = triggerIndex; i < bufferSize; i++) {
|
||||||
const v = dataArray[i] + 1;
|
const v = dataArray[i] + 1;
|
||||||
const y = (scale * (v - 1) + pos) * canvas.height;
|
const y = (1 - (scale * (v - 1) + pos)) * canvas.height;
|
||||||
|
|
||||||
if (i === 0) {
|
if (i === 0) {
|
||||||
ctx.moveTo(x, y);
|
ctx.moveTo(x, y);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user