How to draw a line between two points in raphael

Hy, I want to draw a line between two points in raphael. How can i do this. Maybe there are examples. Thanks)

+4
source share
1 answer
var line = paper.path( ["M", startX, startY, "L", endX, endY ] ); 

where startX startY endX endY are your coordinates :)

+8
source

Source: https://habr.com/ru/post/1493611/


All Articles