Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 72473

How to draw image pointed towards specific x and y coordinates in Canvas HTML

$
0
0

So I know the coordinates of the tip of my image. Now, I want to rotate my image so that the tip is pointed towards some x and y coordinates. So how would I go about doing this? would I have to change the parameters in this drawImage method? Or is there a method in javascript canvas to somehow rotate my image?


Viewing all articles
Browse latest Browse all 72473

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>