diff options
author | Lizzy Hunt <logan.hunt@usu.edu> | 2023-02-24 15:15:29 -0700 |
---|---|---|
committer | Lizzy Hunt <logan.hunt@usu.edu> | 2023-02-24 15:15:29 -0700 |
commit | d49a395dbd8b9ef78a32d14b1d69f37a299ceeac (patch) | |
tree | 9ee8868140013f580a8524b5174b75a4e29502cd /euler-golf/js/game.js | |
parent | 445af5d0be53375355b9dad02510f6b331fd99ec (diff) | |
download | simponic.xyz-d49a395dbd8b9ef78a32d14b1d69f37a299ceeac.tar.gz simponic.xyz-d49a395dbd8b9ef78a32d14b1d69f37a299ceeac.zip |
Visual changes, fix solution not being optimal when one move away
Diffstat (limited to 'euler-golf/js/game.js')
-rw-r--r-- | euler-golf/js/game.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/euler-golf/js/game.js b/euler-golf/js/game.js index 68fca94..a15c913 100644 --- a/euler-golf/js/game.js +++ b/euler-golf/js/game.js @@ -46,7 +46,7 @@ CanvasRenderingContext2D.prototype.draw_cartesian_path = function ( grid_spec, cartesian_path, width = 2, - color = "#000" + color = "#fff" ) { const path = cartesian_path.map((coord) => grid_to_canvas(coord, grid_spec)); path.slice(1).forEach((coord, i) => { @@ -168,7 +168,7 @@ const render = ({ width, height, ctx, rows, cols, target } = state) => { move(prev, curr, new cx(0, state.angle.im < 0 ? -1 : 1)), ].map((c) => grid_to_canvas(complex_to_grid(c, rows, cols), grid_spec)); - ctx.line(a, b, 6, "#aaa"); + ctx.line(a, b, 6, "rgba(127, 127, 127, 0.3)"); } const grid_target = complex_to_grid(target, rows, cols); @@ -182,7 +182,7 @@ const render = ({ width, height, ctx, rows, cols, target } = state) => { } else if (x == grid_target.x && y == grid_target.y) { return { radius: 8, - color: "#00ff00", + color: "#fff", }; } else { return { |