Canvas.Line


public function Line

Prototype:

public function Line(x1,y1,x2,y2);

Parameters

x1
the x1 coordinate of the line
y1
the y1 coordinate of the line
x2
the x2 coordinate of the line
y2
the y2 coordinate of the line

Description:

Draws a line from (x1, y1) to (x2, y2).

Return value:

Returns null.