RasterGraphics.line( x, y, x2, y2 )
Draw a line in the canvas using the current stroke style.Parameters
Name | Type | Description | |
---|---|---|---|
x | number | start X point | |
y | number | start Y point | |
x2 | number | end X point | |
y2 | number | end Y point |
Returns
Type | Description |
---|---|
object | The graphics object. This allow for chaining multiple setter methods in one single statement. |