Ult
Featured
Urt
Ll Lr

Ult
Log in
Urt
Ll Lr


Ult
line()
Urt

Description

Draws a line (a direct path between two points) to the screen. To color a line, use the stroke() function. A line cannot be filled, therefore the fill() method will not affect the color of a line.

Syntax


line(x1, y1, x2, y2)


Parameters

x1 – x-coordinate of the first point

y1 – y-coordinate of the first point

x2 – x-coordinate of the second point

y2 – y-coordinate of the second point

Returns

none

Related

none




Edit History
Ll Lr


Get in touch if you have any questions, or ideas for something you want me to build.