Algorithm-Arena / weekly-challenge-2-double-lines

4 stars 1 forks source link

Submission - Double Lines #1

Open ericlee314 opened 7 months ago

ericlee314 commented 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