目录
当前位置: 首页 > 文档资料 > Snap.svg 英文文档 >

Paper.line(x1, y1, x2, y2)

优质
小牛编辑
127浏览
2023-12-01

Draws a line

Parameters

  1. x1numberx coordinate position of the start
  2. y1numbery coordinate position of the start
  3. x2numberx coordinate position of the end
  4. y2numbery coordinate position of the end

Returns: object the line element

Usage

var t1 = paper.line(50, 50, 100, 100);