Accessibility colors
This commit is contained in:
4
1-1.html
4
1-1.html
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user