Accessibility colors

This commit is contained in:
2021-08-19 17:45:00 -07:00
parent eb9808ecba
commit 18a73d5392
14 changed files with 46 additions and 46 deletions

View File

@@ -68,12 +68,12 @@
ctx.lineTo(xPos + 25 * Math.cos(dt * m), yPos + -25 * Math.sin(dt * m));
ctx.stroke();
//One-dimensional SHM
ctx.strokeStyle = "#FF0000";
ctx.strokeStyle = "#ee0000";
ctx.beginPath();
ctx.moveTo(xPos, yPos - 25);
ctx.lineTo(xPos + 25 * Math.cos(dt * m), yPos - 25);
ctx.stroke();
ctx.strokeStyle = "#0000FF";
ctx.strokeStyle = "#9999ff";
//Mass on spring
drawSpring(1, 3, 25 * Math.cos(dt * m) + 48, 5, 7, xPos - 50, yPos + 25, tStep);
ctx.beginPath();