jupyter-widgets-contrib / ipycanvas

Interactive Canvas in Jupyter
https://ipycanvas.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
686 stars 64 forks source link

Is it possible to draw Arrows with ipycanvas? #186

Open sntgluca opened 3 years ago

sntgluca commented 3 years ago

Dear all,

I am trying to use ipycanvas to write simple sketches, i.e. an oscillating pendulum. I am struggling with writing lines ending up with arrows. I guess could fix my static problem with a couple of more short lines, but IMHO it would be great to be able to draw arrows directly.

Do you have any suggestion or could it be added in a future release? Thanks!

martinRenou commented 3 years ago

Hey!

I was looking at the readthedocs search analytics the other day, and I saw that arrow was searched multiple times over the past months in the documentation so I guess you are not the only one requesting for this feature :)

That being said I guess it could be a good idea to add the possibility to simply draw arrows in ipycanvas. Although it is definitely possible to do it by drawing three lines.