Problem 3-3

This commit is contained in:
2021-08-27 21:17:34 -07:00
parent 2c8989262a
commit 298070b41e
3 changed files with 155 additions and 56 deletions

View File

@@ -154,26 +154,6 @@
ctx.beginPath();
ctx.arc(xPos - 20, yPos - (100 - y1), Math.PI * Math.sqrt(m1), 0, Math.PI * 2);
ctx.fill();
/*ctx.beginPath();
ctx.arc(xPos + lx / 2, yPos, pulleyR, 0, Math.PI * 2);
ctx.stroke();
ctx.beginPath();
ctx.arc(xPos - lx / 2, yPos, pulleyR, 0, Math.PI * 2);
ctx.stroke();
ctx.beginPath();
ctx.moveTo(xPos + lx / 2 + pulleyR, yPos);
ctx.lineTo(xPos + lx / 2 + pulleyR + r * Math.sin(theta), yPos - r * Math.cos(theta));
ctx.stroke();
ctx.beginPath();
ctx.moveTo(xPos - lx / 2 - pulleyR, yPos);
ctx.lineTo(xPos - lx / 2 - pulleyR, yPos - (250 - r));
ctx.stroke();
ctx.beginPath();
ctx.arc(xPos + lx / 2 + pulleyR + r * Math.sin(theta), yPos - r * Math.cos(theta), 5, 0, Math.PI * 2);
ctx.fill();
ctx.beginPath();
ctx.arc(xPos - lx / 2 - pulleyR, yPos - (250 - r), 5, 0, Math.PI * 2);
ctx.fill();*/
}