(canvas, x, y)
| 21 | const order = 3; |
| 22 | // Convert world coordinates to canvas ones. |
| 23 | function world2canvas(canvas, x, y) { |
| 24 | return [x + canvas.width / 2, -y + canvas.height / 2]; |
| 25 | } |
| 26 | // Draw x and y axes in the canvas. |
| 27 | function drawAxes(canvas) { |
| 28 | const ctx = canvas.getContext('2d'); |
no outgoing calls
no test coverage detected