Problem 3-3
This commit is contained in:
@@ -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();*/
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user