Open ericlee314 opened 7 months ago
I've created a web demo in JSFiddle that draws two side-by-side lines without overlapping. Clicking on the canvas adds a new point (which must be orthogonal to the previous point), and extends the two lines to that next point.
Demo and source code
https://github.com/vjeux/weekly-challenge-2-double-lines/assets/4812097/842766fa-805e-4068-aa72-b0268df7ab54
I've created a web demo in JSFiddle that draws two side-by-side lines without overlapping. Clicking on the canvas adds a new point (which must be orthogonal to the previous point), and extends the two lines to that next point.
Demo and source code
https://github.com/vjeux/weekly-challenge-2-double-lines/assets/4812097/842766fa-805e-4068-aa72-b0268df7ab54