line

This function is used to draw a line.

void line(
	int x1,
	int y1,
	int x2,
	int y2
);

Parameters

x1

The x-coordinate of the starting point of the line.

y1

The y-coordinate of the starting point of the line.

x2

The x-coordinate of the end point of the line.

y2

The y-coordinate of the end point of the line.

Return Value

None

Examples

None

(贡献者:Krissi  编辑