Draw arrow on canvas tag

后端 未结 12 939
小鲜肉
小鲜肉 2020-11-27 13:50

I want to draw an arrow using the canvas tag, javascript. I\'ve made it using the quadratic function, but I\'m having problems to calculate the angle of rotation of the arro

12条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-27 14:03

    You can push your matrix, rotate it, draw your arrow and then pop the matrix.

提交回复
热议问题