Draws a line, using the current color, between the points (x1, y1) and (x2, y2).
Property |
Default |
Notes |
|---|---|---|
x1 |
|
|
x2 |
|
|
y1 |
|
|
y2 |
|
|
line( x1: 10, y1: 10, x2: 300, y2: 10, borderColor: 'black', borderWidth: 3 ) line( x1: 10, y1: 20, x2: 300, y2: 40, borderColor: 'red', borderWidth: 3 ) line( x1: 10, y1: 40, x2: 300, y2: 20, borderColor: 'blue', borderWidth: 3 ) line( x1: 10, y1: 50, x2: 300, y2: 50, borderColor: 'black', borderWidth: 3 ) |
