-2

I'm working on a Personal web project I need to draw lines from 2 inputs to a third one.

How can I draw the lines (D in picture) using HTML, CSS and Js ?

enter image description here

EDIT: Ths inputs can be inside div blocks.

Y JRB
  • 451
  • 5
  • 14
  • Although you could do this with typical HTML DOM elements, this is something that would be best done with either SVG (Scalable Vector Graphics) or the Canvas API (drawing pictures with pixels) – scunliffe Jan 24 '20 at 16:42
  • 1
    https://codepen.io/uolot/pen/gmuoC may help – MattHamer5 Jan 24 '20 at 16:42
  • Please do some research before asking questions (and show the results of that research in the question) . – Heretic Monkey Jan 24 '20 at 16:43

1 Answers1

0

Vector graphics are the best to be used whenever you need a graphical solution. But if you insist on using Javascript and such, try p5.js

Kyi Zet
  • 49
  • 2
  • 11