Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to draw line between two points in raphael [closed]

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

like image 763
assd Avatar asked Feb 16 '23 18:02

assd


1 Answers

var line = paper.path( ["M", startX, startY, "L", endX, endY ] );

where startX startY endX endY is your coordinates :)

like image 144
Gintas K Avatar answered Feb 18 '23 11:02

Gintas K