Pline
processingDraws a line (a direct path between two points) to the screen. The version of Pline
with four parameters draws the line in 2D. To color a line, use the Pstroke
function. A line cannot be filled, therefore the Pfill
function will not affect the color of a line. 2D lines are drawn with a width of one pixel by default, but this can be changed with the PstrokeWeight
function. The version with six parameters allows the line to be placed anywhere within XYZ space. Drawing this shape in 3D with the z parameter requires the P3D parameter.