Ooopsie on setLineDash
This commit is contained in:
@@ -99,10 +99,10 @@
|
|||||||
|
|
||||||
|
|
||||||
context.strokeStyle = "#ccc";
|
context.strokeStyle = "#ccc";
|
||||||
context.setLineDash = [3, 3];
|
context.setLineDash([3, 3]);
|
||||||
for (let x = 0; x <= 10; x++) {
|
for (let x = 0; x <= 10; x++) {
|
||||||
let x_px = x*60 + 100;
|
let x_px = x*60 + 100;
|
||||||
context.fillText(`${x/10}`, x_px, 580);
|
context.fillText(`${x/20}s`, x_px, 580);
|
||||||
context.beginPath();
|
context.beginPath();
|
||||||
context.moveTo(x_px, 580);
|
context.moveTo(x_px, 580);
|
||||||
context.lineTo(x_px, 20);
|
context.lineTo(x_px, 20);
|
||||||
|
|||||||
Reference in New Issue
Block a user